babel-plugin-jest-hoist
Advanced tools
Comparing version 26.2.0 to 26.5.0
@@ -253,3 +253,3 @@ 'use strict'; | ||
}; | ||
/* eslint-disable sort-keys,@typescript-eslint/explicit-module-boundary-types */ | ||
/* eslint-disable sort-keys */ | ||
@@ -313,8 +313,11 @@ var _default = () => ({ | ||
const mockStmt = callExpr.getStatementParent(); | ||
const mockStmtNode = mockStmt.node; | ||
const mockStmtParent = mockStmt.parentPath; | ||
if (mockStmtParent.isBlock()) { | ||
mockStmt.remove(); | ||
mockStmtParent.unshiftContainer('body', [mockStmtNode]); | ||
if (mockStmt) { | ||
const mockStmtNode = mockStmt.node; | ||
const mockStmtParent = mockStmt.parentPath; | ||
if (mockStmtParent.isBlock()) { | ||
mockStmt.remove(); | ||
mockStmtParent.unshiftContainer('body', [mockStmtNode]); | ||
} | ||
} | ||
@@ -326,4 +329,4 @@ } | ||
}); | ||
/* eslint-enable sort-keys,@typescript-eslint/explicit-module-boundary-types */ | ||
/* eslint-enable */ | ||
exports.default = _default; |
{ | ||
"name": "babel-plugin-jest-hoist", | ||
"version": "26.2.0", | ||
"version": "26.5.0", | ||
"repository": { | ||
@@ -28,3 +28,3 @@ "type": "git", | ||
}, | ||
"gitHead": "4a716811a309dae135b780a87dc1647b285800eb" | ||
"gitHead": "68d1b1b638bc7464c2794a957c1b894de7da2ee3" | ||
} |
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
297
11257