Disable strict mode for tests

Signed-off-by: David Mehren <git@herrmehren.de>
This commit is contained in:
David Mehren 2021-04-29 19:09:15 +02:00
parent 246d053b68
commit 098ebd0445
No known key found for this signature in database
GPG key ID: 185982BA4C42B7C3
4 changed files with 21 additions and 2 deletions

View file

@ -13,5 +13,10 @@
"^.+\\.(t|j)s$": "ts-jest"
},
"coverageDirectory": "./coverage-e2e",
"testTimeout": 10000
"testTimeout": 10000,
"globals": {
"ts-jest": {
"tsconfig": "tsconfig.test.json"
}
}
}

View file

@ -98,6 +98,11 @@
"^.+\\.(t|j)s$": "ts-jest"
},
"coverageDirectory": "../coverage",
"testEnvironment": "node"
"testEnvironment": "node",
"globals": {
"ts-jest": {
"tsconfig": "tsconfig.test.json"
}
}
}
}

6
tsconfig.test.json Normal file
View file

@ -0,0 +1,6 @@
{
"extends": "./tsconfig.json",
"compilerOptions": {
"strict": false
}
}

View file

@ -0,0 +1,3 @@
SPDX-FileCopyrightText: 2021 The HedgeDoc developers (see AUTHORS file)
SPDX-License-Identifier: CC0-1.0