babel-jest
Advanced tools
Comparing version 5.0.1 to 5.2.0
@@ -8,3 +8,3 @@ var babel = require("babel-core"); | ||
// no environment variable is specified. | ||
var stage = process.env.BABEL_JEST_STAGE || 2 | ||
var stage = process.env.BABEL_JEST_STAGE || 2; | ||
@@ -14,6 +14,7 @@ // Ignore all files within node_modules | ||
if (filename.indexOf("node_modules") === -1 && babel.canCompile(filename)) { | ||
return babel.transform(src, { filename: filename, stage: stage }).code; | ||
return babel.transform(src, { filename: filename, stage: stage, retainLines: true }).code; | ||
} | ||
return src; | ||
} | ||
}; |
{ | ||
"name": "babel-jest", | ||
"version": "5.0.1", | ||
"version": "5.2.0", | ||
"repository": "babel/babel-jest", | ||
"dependencies": { | ||
"babel-core": "^5.0.0" | ||
"babel-core": "^5.2.9" | ||
} | ||
} |
@@ -44,3 +44,3 @@ # babel-jest | ||
// Normal pakcage.json stuff, | ||
// Normal package.json stuff | ||
@@ -51,4 +51,4 @@ "scripts": { | ||
// Normal pakcage.json stuff | ||
// Normal package.json stuff | ||
} | ||
``` |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
2733
Updatedbabel-core@^5.2.9