File tree Expand file tree Collapse file tree 2 files changed +9
-9
lines changed
packages/@vue/cli/lib/promptModules Expand file tree Collapse file tree 2 files changed +9
-9
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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 } )
You can’t perform that action at this time.
0 commit comments