Skip to content

Commit

Permalink
refactor!: support wider range of jest versions by making babel-jest …
Browse files Browse the repository at this point in the history
…& ts-jest peer dependencies

It is mainly because ts-jest has a hard-coded jest version requirement.

And ts-jest is listed as optional, because not every project needs it.
  • Loading branch information
sodatea committed Jul 30, 2020
1 parent e0cbca7 commit 8aef247
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"@vue/compiler-sfc": "3.0.0-alpha.10",
"@vue/test-utils": "^1.0.0-beta.25",
"babel-core": "^7.0.0-bridge.0",
"babel-jest": "^23.6.0",
"babel-jest": "^24.9.0",
"coffeescript": "^2.3.2",
"conventional-changelog": "^1.1.5",
"eslint": "^5.12.0",
Expand Down Expand Up @@ -62,9 +62,16 @@
},
"peerDependencies": {
"@babel/core": "7.x",
"jest": "^24.x",
"babel-jest": ">= 24 < 27",
"jest": ">= 24 < 27 ",
"ts-jest": ">= 24 < 27 ",
"vue": "^2.x"
},
"peerDependenciesMeta": {
"ts-jest": {
"optional": true
}
},
"dependencies": {
"@babel/plugin-transform-modules-commonjs": "^7.2.0",
"chalk": "^2.1.0",
Expand Down

0 comments on commit 8aef247

Please sign in to comment.