8 changed files with 41 additions and 30 deletions
@ -0,0 +1,20 @@
|
||||
{ |
||||
"version": "0.2.0", |
||||
"configurations": [ |
||||
{ |
||||
"type": "node", |
||||
"request": "launch", |
||||
"name": "Jest All", |
||||
"program": "${workspaceFolder}/node_modules/.bin/jest", |
||||
"args": [ |
||||
"--runInBand" |
||||
], |
||||
"console": "integratedTerminal", |
||||
"internalConsoleOptions": "neverOpen", |
||||
"disableOptimisticBPs": true, |
||||
"windows": { |
||||
"program": "${workspaceFolder}/node_modules/jest/bin/jest", |
||||
} |
||||
} |
||||
] |
||||
} |
@ -1,21 +1,11 @@
|
||||
module.exports = { |
||||
"verbose": true, |
||||
"globals": { |
||||
"ts-jest": { |
||||
"useBabelrc": true, |
||||
"tsConfigFile": "tsconfig.jest.json" |
||||
} |
||||
}, |
||||
"transform": { |
||||
"\\.ts": "ts-jest" |
||||
}, |
||||
"testRegex": "(\\.|/)([jt]est)\\.[jt]s$", |
||||
"moduleFileExtensions": [ |
||||
"ts", |
||||
"js", |
||||
"json" |
||||
], |
||||
"setupFiles": [ |
||||
verbose: true, |
||||
preset: 'ts-jest', |
||||
testEnvironment: 'node', |
||||
setupFiles: [ |
||||
"<rootDir>/spec/setup_tests.ts" |
||||
] |
||||
], |
||||
// TODO: folder structure defualt for jest, so
|
||||
// no preference about the testRegex
|
||||
testRegex: "(\\.|/)([jt]est)\\.[jt]s$" |
||||
}; |
||||
|
Loading…
Reference in new issue