Closed
Description
🐛 Bug Report
node --inspect-brk jest --runInBand --watch
doesn't stop on breakpoints or debugger statement whereas
node --inspect-brk jest --runInBand
will (no --watch flag)
Noe: It is using ts-jest 23.0.0
jest.config.js
module.exports = {
globals: {
"ts-jest": {
skipBabel: true,
enableTsDiagnostics: true,
disableSourceMapSupport: true
}
},
roots: [
"<rootDir>/src",
"<rootDir>/tests"
],
transform: {
"^.+\\.tsx?$": "ts-jest"
},
testRegex: "(/tests/.*.(test|spec)).ts$",
moduleFileExtensions: [
"js",
"ts",
"json",
"node"
],
setupTestFrameworkScriptFile: "jest-extended",
verbose: true
};
Expected behavior
I would expect debugging to work with --watch
Run npx envinfo --preset jest
it errors with
(node:2536) UnhandledPromiseRejectionWarning: TypeError: Cannot read property '1' of null
node --version
v10.0.0
jest version
23.4.0
Thanks
Metadata
Metadata
Assignees
Labels
No labels