Retain lines in babel under jest
Now stack trace lines are actually useful.
Ben Alpert committed
May 28, 2015 at 16:09 UTC
049fd9a902da74ab0346a99efad8d41d75c5c24a
1 file changed
+2
-1
jest/preprocessor.js
+2
-1
@@ -23,7 +23,8 @@ module.exports = {
23
if (!path.match(/\/node_modules\//) && !path.match(/\/third_party\//)) {
24
return babel.transform(src, {
25
blacklist: ['spec.functionName', 'validation.react'],
26
- filename: path
26
+ filename: path,
27
+ retainLines: true
28
}).code;
29
}
30
return src;