Skip to content

Commit

Permalink
chore: make babel-preset-jest as a peerDependency
Browse files Browse the repository at this point in the history
  • Loading branch information
ravijayaramappa committed Jun 14, 2020
1 parent cfacb10 commit b38fd4e
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 21 deletions.
2 changes: 1 addition & 1 deletion packages/@lwc/jest-preset/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
7 changes: 4 additions & 3 deletions packages/@lwc/jest-transformer/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
19 changes: 2 additions & 17 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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==
Expand Down Expand Up @@ -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"
Expand Down Expand Up @@ -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==
Expand Down

0 comments on commit b38fd4e

Please sign in to comment.