mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-11-23 02:06:29 -05:00
ade58e3ca1
WebStorm does not support typescript.*.json files, but always uses the nearest tsconfig.json. Moving the test-specific tsconfig into the test folder allows WebStorm to use the correct config for the E2E-tests and stops it from showing unnecessary errors. Signed-off-by: David Mehren <git@herrmehren.de>
22 lines
379 B
JSON
22 lines
379 B
JSON
{
|
|
"moduleFileExtensions": [
|
|
"js",
|
|
"json",
|
|
"ts"
|
|
],
|
|
"rootDir": ".",
|
|
"testEnvironment": "node",
|
|
"testMatch": [
|
|
"<rootDir>/test/**/*.e2e-spec.{ts,js}"
|
|
],
|
|
"transform": {
|
|
"^.+\\.(t|j)s$": "ts-jest"
|
|
},
|
|
"coverageDirectory": "./coverage-e2e",
|
|
"testTimeout": 10000,
|
|
"globals": {
|
|
"ts-jest": {
|
|
"tsconfig": "test/tsconfig.json"
|
|
}
|
|
}
|
|
}
|