babel-jest
Advanced tools
Comparing version 14.0.0 to 14.0.1
@@ -14,12 +14,24 @@ /** | ||
module.exports = { | ||
process(src, filename) { | ||
if (babel.util.canCompile(filename)) { | ||
return babel.transform(src, { | ||
auxiliaryCommentBefore: ' istanbul ignore next ', | ||
filename, | ||
presets: [jestPreset], | ||
retainLines: true }). | ||
code;} | ||
const createTransformer = options => { | ||
options = Object.assign({}, options, { | ||
auxiliaryCommentBefore: ' istanbul ignore next ', | ||
presets: [jestPreset], | ||
retainLines: true }); | ||
return src;} }; | ||
delete options.cacheDirectory; | ||
return { | ||
process(src, filename) { | ||
if (babel.util.canCompile(filename)) { | ||
return babel.transform( | ||
src, | ||
Object.assign({}, options, { filename })). | ||
code;} | ||
return src;} };}; | ||
module.exports = createTransformer(); | ||
module.exports.createTransformer = createTransformer; |
{ | ||
"name": "babel-jest", | ||
"version": "14.0.0", | ||
"version": "14.0.1", | ||
"repository": { | ||
@@ -5,0 +5,0 @@ "type": "git", |
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
1773
25