diff --git a/packages/@lwc/jest-preset/package.json b/packages/@lwc/jest-preset/package.json index f219d6c8..da796c6b 100644 --- a/packages/@lwc/jest-preset/package.json +++ b/packages/@lwc/jest-preset/package.json @@ -30,7 +30,7 @@ "@lwc/jest-resolver": "7.0.0", "@lwc/jest-serializer": "7.0.0", "@lwc/jest-transformer": "7.0.0", - "jest-environment-jsdom-fifteen": "^1.0.2" + "jest-environment-jsdom-fifteen": "~1.0.2" }, "engines": { "node": ">=10" diff --git a/packages/@lwc/jest-transformer/package.json b/packages/@lwc/jest-transformer/package.json index 84622917..e3b2c956 100644 --- a/packages/@lwc/jest-transformer/package.json +++ b/packages/@lwc/jest-transformer/package.json @@ -28,17 +28,18 @@ "@babel/plugin-transform-modules-commonjs": "7.9.0", "@babel/preset-typescript": "7.9.0", "@babel/template": "~7.8.6", - "babel-plugin-transform-dynamic-import": "^2.1.0", - "babel-preset-jest": "^25.4.0" + "babel-plugin-transform-dynamic-import": "~2.1.0" }, "peerDependencies": { "@lwc/compiler": "*", + "babel-preset-jest": "^25.5.0", "jest": "^25.5.4" }, "devDependencies": { "@lwc/jest-preset": "7.0.0", "@lwc/jest-resolver": "7.0.0", - "@lwc/jest-serializer": "7.0.0" + "@lwc/jest-serializer": "7.0.0", + "babel-preset-jest": "^25.5.0" }, "engines": { "node": ">=10" diff --git a/yarn.lock b/yarn.lock index aa1fc9ab..fbd0fa24 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2550,13 +2550,6 @@ babel-plugin-istanbul@^6.0.0: istanbul-lib-instrument "^4.0.0" test-exclude "^6.0.0" -babel-plugin-jest-hoist@^25.4.0: - version "25.4.0" - resolved "https://registry.yarnpkg.com/babel-plugin-jest-hoist/-/babel-plugin-jest-hoist-25.4.0.tgz#0c122c1b93fb76f52d2465be2e8069e798e9d442" - integrity sha512-M3a10JCtTyKevb0MjuH6tU+cP/NVQZ82QPADqI1RQYY1OphztsCeIeQmTsHmF/NS6m0E51Zl4QNsI3odXSQF5w== - dependencies: - "@types/babel__traverse" "^7.0.6" - babel-plugin-jest-hoist@^25.5.0: version "25.5.0" resolved "https://registry.yarnpkg.com/babel-plugin-jest-hoist/-/babel-plugin-jest-hoist-25.5.0.tgz#129c80ba5c7fc75baf3a45b93e2e372d57ca2677" @@ -2566,7 +2559,7 @@ babel-plugin-jest-hoist@^25.5.0: "@babel/types" "^7.3.3" "@types/babel__traverse" "^7.0.6" -babel-plugin-transform-dynamic-import@^2.1.0: +babel-plugin-transform-dynamic-import@~2.1.0: version "2.1.0" resolved "https://registry.yarnpkg.com/babel-plugin-transform-dynamic-import/-/babel-plugin-transform-dynamic-import-2.1.0.tgz#3ce618dd983c072b6e2135f527d46092fb45d80e" integrity sha512-ja4NWc37+7bV6/uJKCERJEGHEyK1DXgXp8teHvjKC4Jsj3Ib484dJdamFIBtSb40JFniyWZo6ML46usVvfdsSg== @@ -2632,14 +2625,6 @@ babel-preset-current-node-syntax@^0.1.2: "@babel/plugin-syntax-optional-catch-binding" "^7.8.3" "@babel/plugin-syntax-optional-chaining" "^7.8.3" -babel-preset-jest@^25.4.0: - version "25.4.0" - resolved "https://registry.yarnpkg.com/babel-preset-jest/-/babel-preset-jest-25.4.0.tgz#10037cc32b751b994b260964629e49dc479abf4c" - integrity sha512-PwFiEWflHdu3JCeTr0Pb9NcHHE34qWFnPQRVPvqQITx4CsDCzs6o05923I10XvLvn9nNsRHuiVgB72wG/90ZHQ== - dependencies: - babel-plugin-jest-hoist "^25.4.0" - babel-preset-current-node-syntax "^0.1.2" - babel-preset-jest@^25.5.0: version "25.5.0" resolved "https://registry.yarnpkg.com/babel-preset-jest/-/babel-preset-jest-25.5.0.tgz#c1d7f191829487a907764c65307faa0e66590b49" @@ -5231,7 +5216,7 @@ jest-each@^25.5.0: jest-util "^25.5.0" pretty-format "^25.5.0" -jest-environment-jsdom-fifteen@^1.0.2: +jest-environment-jsdom-fifteen@~1.0.2: version "1.0.2" resolved "https://registry.yarnpkg.com/jest-environment-jsdom-fifteen/-/jest-environment-jsdom-fifteen-1.0.2.tgz#49a0af55e0d32737a6114a1575dd714702ad63b0" integrity sha512-nfrnAfwklE1872LIB31HcjM65cWTh1wzvMSp10IYtPJjLDUbTTvDpajZgIxUnhRmzGvogdHDayCIlerLK0OBBg==