Skip to content

Commit edce9d0

Browse files
authored
chore!: bump unit-mocha dependency versions (vuejs#5907)
1 parent b8b0ba7 commit edce9d0

File tree

4 files changed

+216
-24
lines changed

4 files changed

+216
-24
lines changed

docs/migrations/migrate-from-v4.md

+5
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,11 @@ Please consider switching to ESLint. You can check out [`tslint-to-eslint-config
5555

5656
* Cypress is updated from v3 to v5. See <https://docs.cypress.io/guides/references/migration-guide.html> for a detailed migration guide.
5757

58+
### Unit-Mocha Plugin
59+
60+
* Updated `mocha` from v6 to v7, please refer to the release notes of [mocha v7](https://github.com/mochajs/mocha/releases/tag/v7.0.0) for a complete list of breaking changes.
61+
* Updated `jsdom` from v15 to v16, the breaking changes are listed at <https://github.com/jsdom/jsdom/releases/tag/16.0.0>
62+
5863
### Internal Packages
5964

6065
#### `@vue/cli-shared-utils`

packages/@vue/cli-plugin-unit-mocha/generator/index.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ module.exports = (api, options, rootOptions, invoking) => {
99

1010
api.extendPackage({
1111
devDependencies: {
12-
'@vue/test-utils': isVue3 ? '^2.0.0-0' : '^1.0.3',
13-
'chai': '^4.1.2'
12+
'@vue/test-utils': isVue3 ? '^2.0.0-0' : '^1.1.0',
13+
'chai': '^4.2.0'
1414
},
1515
scripts: {
1616
'test:unit': 'vue-cli-service test:unit'

packages/@vue/cli-plugin-unit-mocha/package.json

+5-5
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,14 @@
2323
"homepage": "https://github.com/vuejs/vue-cli/tree/dev/packages/@vue/cli-plugin-unit-mocha#readme",
2424
"dependencies": {
2525
"@vue/cli-shared-utils": "^4.5.5",
26-
"jsdom": "^15.2.1",
26+
"jsdom": "^16.4.0",
2727
"jsdom-global": "^3.0.2",
28-
"mocha": "^6.2.2",
29-
"mochapack": "^1.1.15"
28+
"mocha": "^7.2.0",
29+
"mochapack": "^2.0.2"
3030
},
3131
"devDependencies": {
32-
"@vue/test-utils": "^1.0.3",
33-
"chai": "^4.1.2"
32+
"@vue/test-utils": "^1.1.0",
33+
"chai": "^4.2.0"
3434
},
3535
"peerDependencies": {
3636
"@vue/cli-service": "^3.0.0 || ^4.0.0-0"

0 commit comments

Comments
 (0)