Skip to content

Commit 049fd9a

Browse files
committed
Retain lines in babel under jest
Now stack trace lines are actually useful.
1 parent 8471cc5 commit 049fd9a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

jest/preprocessor.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@ module.exports = {
2323
if (!path.match(/\/node_modules\//) && !path.match(/\/third_party\//)) {
2424
return babel.transform(src, {
2525
blacklist: ['spec.functionName', 'validation.react'],
26-
filename: path
26+
filename: path,
27+
retainLines: true
2728
}).code;
2829
}
2930
return src;

0 commit comments

Comments
 (0)