You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using jest with babel and i want to debug my test.
I'm able to debug jest with node --debug-brk ./node_modules/.bin/jest --runInBand [any other arguments here] but lose all es6 source code info.
I know source-map-support is a babel feature not jest's, but jest should somehow tell babel to include source-map-support.
so far I've tried
1. config `transform`
"transform": {
".*": "<rootDir>/scripts/jest/preprocessor.js"
}
2. in my preprocess.js file I have
const register=require("babel-register")
register()
...
module.exports = {
process: function(src, filename) {
const options = assign({}, babelOptions, {
filename: filename,
retainLines: true,
sourceMap:true, // I added this line
});
return babel.transform(src, options).code;
},
but this doesn't work. any ideas?
The text was updated successfully, but these errors were encountered:
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Please note this issue tracker is not a help forum. We recommend using StackOverflow or our discord channel for questions.
I'm using
jest
withbabel
and i want to debug my test.I'm able to debug jest with
node --debug-brk ./node_modules/.bin/jest --runInBand [any other arguments here]
but lose all es6 source code info.I know
source-map-support
is ababel
feature notjest's
, butjest
should somehow tellbabel
to includesource-map-support
.so far I've tried
but this doesn't work. any ideas?
The text was updated successfully, but these errors were encountered: