babel-jest
Advanced tools
Comparing version 9.0.1 to 9.0.2
{ | ||
"name": "babel-jest", | ||
"version": "9.0.1", | ||
"version": "9.0.2", | ||
"repository": { | ||
@@ -5,0 +5,0 @@ "type": "git", |
@@ -13,16 +13,6 @@ /** | ||
const jestPreset = require('babel-preset-jest'); | ||
const path = require('path'); | ||
const NODE_MODULES = path.sep + 'node_modules' + path.sep; | ||
const isNodeModule = filename => { | ||
if (filename.includes(NODE_MODULES)) { | ||
return !filename.includes(NODE_MODULES + 'react-native' + path.sep); | ||
} | ||
return false; | ||
}; | ||
module.exports = { | ||
process(src, filename) { | ||
if (!isNodeModule(filename) && babel.util.canCompile(filename)) { | ||
if (babel.util.canCompile(filename)) { | ||
return babel.transform(src, { | ||
@@ -29,0 +19,0 @@ filename, |
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
1443
22