Skip to content

Commit

Permalink
feat!: update to jest 25
Browse files Browse the repository at this point in the history
Jest has released version 25 under the `next` dist-tag:
- https://www.npmjs.com/package/jest/v/25.0.0
- jestjs/jest#8862

See breaking changes at
https://github.com/facebook/jest/blob/6c0a16ab2f88ea645c04880a5491b3a8c2dfc66b/CHANGELOG.md

The maintainer promised no more user facing breaking changes planned
jestjs/jest#8956 (comment)

Considering Vue CLI does not bump the major version often, we need to
use the latest possible version.

Currently there will be warnings from ts-jest.
Once this PR gets merged kulshekhar/ts-jest#1232
the warnings will be eliminated.
  • Loading branch information
haoqunjiang committed Sep 17, 2019
1 parent 0473432 commit 532428e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion packages/@vue/cli-plugin-unit-jest/generator/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ module.exports = (api, _, __, invoking) => {
if (api.hasPlugin('babel')) {
api.extendPackage({
devDependencies: {
'babel-jest': '^24.8.0',
'@babel/core': '^7.4.5'
}
})
Expand Down
4 changes: 2 additions & 2 deletions packages/@vue/cli-plugin-unit-jest/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@
"@babel/plugin-transform-modules-commonjs": "^7.4.4",
"@vue/cli-shared-utils": "^4.0.0-rc.3",
"babel-core": "7.0.0-bridge.0",
"babel-jest": "^24.8.0",
"jest": "^24.8.0",
"babel-jest": "^25.0.0",
"jest": "^25.0.0",
"jest-serializer-vue": "^2.0.2",
"jest-transform-stub": "^2.0.0",
"jest-watch-typeahead": "^0.3.1",
Expand Down

0 comments on commit 532428e

Please sign in to comment.