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

View file

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