Debug Node.js code with Chrome Developer Tools.
The Node.js Debugger
To run my UTs I run the command:
BABEL_JEST_STAGE=0 jest
How can I use iron-node to debug my unit tests?
btw, my package.json has a standard jest configuration:
"jest": {
"scriptPreprocessor": "<rootDir>/node_modules/babel-jest",
"testFileExtensions": [
"es6",
"js"
],
"moduleFileExtensions": [
"js",
"json",
"es6"
],
"unmockedModulePathPatterns": [
"react"
]
}
Source: (StackOverflow)