Skip to content

Commit

Permalink
chore: update peerdependency of jest to ^25.5.4 @W-7689277 (#90)
Browse files Browse the repository at this point in the history
* chore: update peerdependency of jest to ^25.5.4

* chore: make babel-preset-jest as a peerDependency

* chore: move babel-preset-jest to be a dependency

* chore: update peerDependencies
  • Loading branch information
ravijayaramappa authored Jun 16, 2020
1 parent 7ca2e78 commit c79f4e6
Show file tree
Hide file tree
Showing 8 changed files with 137 additions and 417 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"@types/jest": "^25.2.1",
"babel-eslint": "^10.1.0",
"eslint": "^6.8.0",
"jest": "^25.5.0",
"jest": "^25.5.4",
"lerna": "^3.20.2",
"prettier": "^2.0.5"
},
Expand Down
4 changes: 0 additions & 4 deletions packages/@lwc/jest-preset/jest-preset.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,4 @@ module.exports = {
// temp workaround until this is released - https://github.com/facebook/jest/pull/6792
testURL: 'http://localhost/',
coveragePathIgnorePatterns: ['.css$', '.html$'],

// Use an up-to-date version of jsdom. Jest v24 comes with jsdom v11 which doesn't offer support
// for native shadow DOM.
testEnvironment: 'jest-environment-jsdom-fifteen',
};
5 changes: 2 additions & 3 deletions packages/@lwc/jest-preset/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,12 @@
"peerDependencies": {
"@lwc/compiler": "*",
"@lwc/synthetic-shadow": "*",
"jest": ">=24.9.0"
"jest": "^25.5.4"
},
"dependencies": {
"@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"
"@lwc/jest-transformer": "7.0.0"
},
"engines": {
"node": ">=10"
Expand Down
6 changes: 6 additions & 0 deletions packages/@lwc/jest-resolver/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,15 @@
"/resources/",
"/src/index.js"
],
"dependencies": {
"jest-resolve": "~25.5.1"
},
"devDependencies": {
"@lwc/jest-preset": "7.0.0"
},
"peerDependencies": {
"jest": "^25.5.4"
},
"license": "MIT",
"engines": {
"node": ">=10"
Expand Down
3 changes: 3 additions & 0 deletions packages/@lwc/jest-serializer/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@
"dependencies": {
"pretty-format": "~25.4.0"
},
"peerDependencies": {
"jest": "^25.5.4"
},
"engines": {
"node": ">=10"
}
Expand Down
6 changes: 3 additions & 3 deletions packages/@lwc/jest-transformer/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,12 @@
"@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",
"babel-preset-jest": "~25.5.0"
},
"peerDependencies": {
"@lwc/compiler": "*",
"jest": ">= 24.9.0"
"jest": "^25.5.4"
},
"devDependencies": {
"@lwc/jest-preset": "7.0.0",
Expand Down
4 changes: 0 additions & 4 deletions scripts/jest/base.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,4 @@ module.exports = {
lines: 85,
},
},

// Use an up-to-date version of jsdom. Jest v24 comes with jsdom v11 which doesn't offer support
// for native shadow DOM.
testEnvironment: 'jest-environment-jsdom-fifteen',
};
Loading

0 comments on commit c79f4e6

Please sign in to comment.