mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-11-21 17:26:29 -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}"
|
||||
],
|
||||
"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"]
|
||||
}
|
||||
|
|
12
package.json
12
package.json
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue