test: configure ts-jest in transform

Signed-off-by: David Mehren <git@herrmehren.de>
This commit is contained in:
David Mehren 2022-09-11 16:40:23 +02:00
parent c9fcb841aa
commit d385fb408d
2 changed files with 12 additions and 12 deletions

View file

@ -10,14 +10,14 @@
"<rootDir>/test/**/*.e2e-spec.{ts,js}"
],
"transform": {
"^.+\\.(t|j)s$": "ts-jest"
"^.+\\.(t|j)s$": [
"ts-jest",
{
"tsconfig": "test/tsconfig.json"
}
]
},
"coverageDirectory": "./coverage-e2e",
"testTimeout": 10000,
"globals": {
"ts-jest": {
"tsconfig": "test/tsconfig.json"
}
},
"reporters": ["default", "github-actions"]
}

View file

@ -123,15 +123,15 @@
"rootDir": "src",
"testRegex": ".spec.ts$",
"transform": {
"^.+\\.(t|j)s$": "ts-jest"
"^.+\\.(t|j)s$": [
"ts-jest",
{
"tsconfig": "test/tsconfig.json"
}
]
},
"coverageDirectory": "../coverage",
"testEnvironment": "node",
"globals": {
"ts-jest": {
"tsconfig": "test/tsconfig.json"
}
},
"reporters": [
"default",
"github-actions"