babel-plugin-jest-hoist
Advanced tools
Comparing version 26.1.0 to 26.2.0
@@ -41,3 +41,3 @@ 'use strict'; | ||
const WHITELISTED_IDENTIFIERS = new Set( | ||
const ALLOWED_IDENTIFIERS = new Set( | ||
[ | ||
@@ -144,3 +144,3 @@ 'Array', | ||
const isAllowedIdentifier = | ||
(scope.hasGlobal(name) && WHITELISTED_IDENTIFIERS.has(name)) || | ||
(scope.hasGlobal(name) && ALLOWED_IDENTIFIERS.has(name)) || | ||
/^mock/i.test(name) || // Allow istanbul's coverage variable to pass. | ||
@@ -156,4 +156,4 @@ /^(?:__)?cov/.test(name); | ||
'\n' + | ||
'Whitelisted objects: ' + | ||
Array.from(WHITELISTED_IDENTIFIERS).join(', ') + | ||
'Allowed objects: ' + | ||
Array.from(ALLOWED_IDENTIFIERS).join(', ') + | ||
'.\n' + | ||
@@ -213,2 +213,3 @@ 'Note: This is a precaution to guard against uninitialized mock ' + | ||
expression.get('object').referencesImport(JEST_GLOBALS_MODULE_NAME, '*') && | ||
expression.node.property.type === 'Identifier' && | ||
expression.node.property.name === JEST_GLOBALS_MODULE_JEST_EXPORT_NAME | ||
@@ -215,0 +216,0 @@ ) { |
{ | ||
"name": "babel-plugin-jest-hoist", | ||
"version": "26.1.0", | ||
"version": "26.2.0", | ||
"repository": { | ||
@@ -28,3 +28,3 @@ "type": "git", | ||
}, | ||
"gitHead": "817d8b6aca845dd4fcfd7f8316293e69f3a116c5" | ||
"gitHead": "4a716811a309dae135b780a87dc1647b285800eb" | ||
} |
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
11316
295