babel-plugin-jest-hoist
Advanced tools
Comparing version 19.1.0-alpha.eed82034 to 19.2.0-alpha.993e64af
@@ -7,2 +7,4 @@ /** | ||
* of patent rights can be found in the PATENTS file in the same directory. | ||
* | ||
* | ||
*/ | ||
@@ -140,3 +142,3 @@ | ||
module.exports = babel => { | ||
module.exports = () => { | ||
const isJest = callee => | ||
@@ -153,7 +155,9 @@ callee.get('object').isIdentifier(JEST_GLOBAL) || | ||
const property = callee.get('property'); | ||
return property.isIdentifier() && | ||
FUNCTIONS[property.node.name] && ( | ||
object.isIdentifier(JEST_GLOBAL) || | ||
callee.isMemberExpression() && shouldHoistExpression(object)) && | ||
FUNCTIONS[property.node.name](expr.get('arguments')); | ||
return ( | ||
property.isIdentifier() && | ||
FUNCTIONS[property.node.name] && ( | ||
object.isIdentifier(JEST_GLOBAL) || | ||
callee.isMemberExpression() && shouldHoistExpression(object)) && | ||
FUNCTIONS[property.node.name](expr.get('arguments'))); | ||
}; | ||
@@ -160,0 +164,0 @@ return { |
{ | ||
"name": "babel-plugin-jest-hoist", | ||
"version": "19.1.0-alpha.eed82034", | ||
"version": "19.2.0-alpha.993e64af", | ||
"repository": { | ||
@@ -5,0 +5,0 @@ "type": "git", |
Sorry, the diff of this file is not supported yet
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
5309
148