Skip to content

Commit 198b3cc

Browse files
authored
Merge pull request #262 from sodatea/refactor-jest-dependencies
refactor!: support wider range of jest versions by making babel-jest & ts-jest peer dependencies
2 parents a0dfa5a + d688d7d commit 198b3cc

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

package.json

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
"@vue/compiler-sfc": "3.0.0-alpha.10",
3535
"@vue/test-utils": "^1.0.0-beta.25",
3636
"babel-core": "^7.0.0-bridge.0",
37-
"babel-jest": "^23.6.0",
37+
"babel-jest": "^24.9.0",
3838
"coffeescript": "^2.3.2",
3939
"conventional-changelog": "^1.1.5",
4040
"eslint": "^5.12.0",
@@ -62,9 +62,16 @@
6262
},
6363
"peerDependencies": {
6464
"@babel/core": "7.x",
65-
"jest": "^24.x",
65+
"babel-jest": ">= 24 < 27",
66+
"jest": ">= 24 < 27 ",
67+
"ts-jest": ">= 24 < 27 ",
6668
"vue": "^3.0.0-0"
6769
},
70+
"peerDependenciesMeta": {
71+
"ts-jest": {
72+
"optional": true
73+
}
74+
},
6875
"dependencies": {
6976
"@babel/plugin-transform-modules-commonjs": "^7.2.0",
7077
"chalk": "^2.1.0",

0 commit comments

Comments
 (0)