mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-11-25 03:06:31 -05:00
test: configure ts-jest in transform
Signed-off-by: David Mehren <git@herrmehren.de>
This commit is contained in:
parent
c9fcb841aa
commit
d385fb408d
2 changed files with 12 additions and 12 deletions
|
@ -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"]
|
||||||
}
|
}
|
||||||
|
|
12
package.json
12
package.json
|
@ -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"
|
||||||
|
|
Loading…
Reference in a new issue