Jest config in package.json again

This commit is contained in:
Christian Georgi
2021-07-13 13:54:18 +02:00
parent 00bfc1507e
commit 7b18e15e5b
2 changed files with 14 additions and 13 deletions

View File

@@ -1,13 +0,0 @@
module.exports = {
testEnvironment: 'node',
preset: "ts-jest",
globals: {
"ts-jest": {
diagnostics: {
ignoreCodes: [
151001 // see https://githubmemory.com/repo/kulshekhar/ts-jest/issues/2722
]
}
}
}
}

View File

@@ -11,5 +11,19 @@
"@types/node": "^15.12.0",
"ts-jest": "^27.0.2",
"typescript": "^4.3.5"
},
"jest": {
"testEnvironment": "node",
"preset": "ts-jest",
"globals": {
"ts-jest": {
"diagnostics": {
"_comment": "see https://githubmemory.com/repo/kulshekhar/ts-jest/issues/2722",
"ignoreCodes": [
151001
]
}
}
}
}
}