babel-plugin-jest-hoist
Advanced tools
Comparing version 17.0.2 to 18.0.0
@@ -82,3 +82,3 @@ /** | ||
return args[0].isStringLiteral(); | ||
} else if (args.length === 2) { | ||
} else if (args.length === 2 || args.length === 3) { | ||
const moduleFactory = args[1]; | ||
@@ -112,3 +112,3 @@ invariant( | ||
// Allow istanbul's coverage variable to pass. | ||
//^(?:__)?cov/.test(name), | ||
/^(?:__)?cov/.test(name), | ||
'The module factory of `jest.mock()` is not allowed to ' + | ||
@@ -115,0 +115,0 @@ 'reference any out-of-scope variables.\n' + |
{ | ||
"name": "babel-plugin-jest-hoist", | ||
"version": "17.0.2", | ||
"version": "18.0.0", | ||
"repository": { | ||
@@ -5,0 +5,0 @@ "type": "git", |
5296