mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
Merge pull request #3977 from spicyj/jest-lines
Retain lines in babel under jest
This commit is contained in:
@@ -23,7 +23,8 @@ module.exports = {
|
||||
if (!path.match(/\/node_modules\//) && !path.match(/\/third_party\//)) {
|
||||
return babel.transform(src, {
|
||||
blacklist: ['spec.functionName', 'validation.react'],
|
||||
filename: path
|
||||
filename: path,
|
||||
retainLines: true
|
||||
}).code;
|
||||
}
|
||||
return src;
|
||||
|
||||
Reference in New Issue
Block a user