Skip to content

Commit f1962ad

Browse files
authored
feat!: update mocha to v8 (#6121)
1 parent a04509d commit f1962ad

File tree

6 files changed

+6
-6
lines changed

6 files changed

+6
-6
lines changed

docs/migrations/migrate-from-v4.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ Please consider switching to ESLint. You can check out [`tslint-to-eslint-config
114114

115115
### Unit-Mocha Plugin
116116

117-
* `mocha` is upgraded 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.
117+
* `mocha` is upgraded from v6 to v8, please refer to the release notes of [mocha v7](https://github.com/mochajs/mocha/releases/tag/v7.0.0) and [mocha v8](https://github.com/mochajs/mocha/releases/tag/v8.0.0) for a complete list of breaking changes.
118118
* `jsdom` is upgraded from v15 to v16, the breaking changes are listed at [`jsdom` v16.0.0 release](https://github.com/jsdom/jsdom/releases/tag/16.0.0)
119119

120120
### Internal Packages

packages/@vue/cli-plugin-e2e-webdriverio/generator/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ const { installedBrowsers } = require('@vue/cli-shared-utils')
33
const applyTS = module.exports.applyTS = (api, invoking) => {
44
api.extendPackage({
55
devDependencies: {
6-
'@types/mocha': '^8.0.1'
6+
'@types/mocha': require('../package.json').dependencies['@types/mocha']
77
}
88
})
99

packages/@vue/cli-plugin-e2e-webdriverio/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
"access": "public"
2626
},
2727
"dependencies": {
28-
"@types/mocha": "^8.0.1",
28+
"@types/mocha": "^8.0.4",
2929
"@vue/cli-shared-utils": "^4.5.8",
3030
"@wdio/cli": "^6.10.5",
3131
"@wdio/local-runner": "^6.10.5",

packages/@vue/cli-plugin-typescript/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
"devDependencies": {
4848
"@types/chai": "^4.2.11",
4949
"@types/jest": "^26.0.17",
50-
"@types/mocha": "^7.0.2",
50+
"@types/mocha": "^8.0.4",
5151
"jscodeshift": "^0.11.0",
5252
"typescript": "~3.9.3",
5353
"vue-class-component": "^7.2.3",

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ const applyESLint = module.exports.applyESLint = api => {
6262
const applyTS = module.exports.applyTS = (api, invoking) => {
6363
api.extendPackage({
6464
devDependencies: {
65-
'@types/mocha': '^7.0.2',
65+
'@types/mocha': '^8.0.4',
6666
'@types/chai': '^4.2.11'
6767
}
6868
})

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
"@vue/cli-shared-utils": "^4.5.8",
2626
"jsdom": "^16.4.0",
2727
"jsdom-global": "^3.0.2",
28-
"mocha": "^7.2.0",
28+
"mocha": "^8.2.1",
2929
"mochapack": "^2.0.2"
3030
},
3131
"devDependencies": {

0 commit comments

Comments
 (0)