Skip to content

Commit ae967f7

Browse files
authored
chore: de-prioritize "Mocha + Chai" option as it requires webpack 4 for now (#6401)
1 parent 8654e82 commit ae967f7

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

packages/@vue/cli/lib/promptModules/__tests__/unit.spec.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,14 @@ test('mocha', async () => {
1414
},
1515
{
1616
message: 'Pick a unit testing solution',
17-
choices: ['Mocha', 'Jest'],
17+
choices: ['Jest', 'Mocha'],
1818
choose: 0
1919
}
2020
]
2121

2222
const expectedOptions = {
2323
plugins: {
24-
'@vue/cli-plugin-unit-mocha': {}
24+
'@vue/cli-plugin-unit-jest': {}
2525
}
2626
}
2727

@@ -42,14 +42,14 @@ test('jest', async () => {
4242
},
4343
{
4444
message: 'Pick a unit testing solution',
45-
choices: ['Mocha', 'Jest'],
45+
choices: ['Jest', 'Mocha'],
4646
choose: 1
4747
}
4848
]
4949

5050
const expectedOptions = {
5151
plugins: {
52-
'@vue/cli-plugin-unit-jest': {}
52+
'@vue/cli-plugin-unit-mocha': {}
5353
}
5454
}
5555

packages/@vue/cli/lib/promptModules/unit.js

+5-5
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,15 @@ module.exports = cli => {
1414
type: 'list',
1515
message: 'Pick a unit testing solution:',
1616
choices: [
17-
{
18-
name: 'Mocha + Chai',
19-
value: 'mocha',
20-
short: 'Mocha'
21-
},
2217
{
2318
name: 'Jest',
2419
value: 'jest',
2520
short: 'Jest'
21+
},
22+
{
23+
name: 'Mocha + Chai (requires webpack 4)',
24+
value: 'mocha',
25+
short: 'Mocha'
2626
}
2727
]
2828
})

0 commit comments

Comments
 (0)