mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-11-24 02:36:31 -05:00
441e7402a8
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"
|
|
}
|
|
}
|
|
}
|