File tree 2 files changed +9
-9
lines changed
packages/@vue/cli/lib/promptModules
2 files changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -14,14 +14,14 @@ test('mocha', async () => {
14
14
} ,
15
15
{
16
16
message : 'Pick a unit testing solution' ,
17
- choices : [ 'Mocha ' , 'Jest ' ] ,
17
+ choices : [ 'Jest ' , 'Mocha ' ] ,
18
18
choose : 0
19
19
}
20
20
]
21
21
22
22
const expectedOptions = {
23
23
plugins : {
24
- '@vue/cli-plugin-unit-mocha ' : { }
24
+ '@vue/cli-plugin-unit-jest ' : { }
25
25
}
26
26
}
27
27
@@ -42,14 +42,14 @@ test('jest', async () => {
42
42
} ,
43
43
{
44
44
message : 'Pick a unit testing solution' ,
45
- choices : [ 'Mocha ' , 'Jest ' ] ,
45
+ choices : [ 'Jest ' , 'Mocha ' ] ,
46
46
choose : 1
47
47
}
48
48
]
49
49
50
50
const expectedOptions = {
51
51
plugins : {
52
- '@vue/cli-plugin-unit-jest ' : { }
52
+ '@vue/cli-plugin-unit-mocha ' : { }
53
53
}
54
54
}
55
55
Original file line number Diff line number Diff line change @@ -14,15 +14,15 @@ module.exports = cli => {
14
14
type : 'list' ,
15
15
message : 'Pick a unit testing solution:' ,
16
16
choices : [
17
- {
18
- name : 'Mocha + Chai' ,
19
- value : 'mocha' ,
20
- short : 'Mocha'
21
- } ,
22
17
{
23
18
name : 'Jest' ,
24
19
value : 'jest' ,
25
20
short : 'Jest'
21
+ } ,
22
+ {
23
+ name : 'Mocha + Chai (requires webpack 4)' ,
24
+ value : 'mocha' ,
25
+ short : 'Mocha'
26
26
}
27
27
]
28
28
} )
You can’t perform that action at this time.
0 commit comments