File tree 1 file changed +3
-3
lines changed
packages/@vue/cli/__tests__
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -76,19 +76,19 @@ test('invoke with existing files', async () => {
76
76
await project . write ( 'package.json' , JSON . stringify ( pkg , null , 2 ) )
77
77
78
78
// mock existing vue.config.js
79
- await project . write ( 'vue.config.js' , `module.exports = { lintOnSave: false }` )
79
+ await project . write ( 'vue.config.js' , `module.exports = { lintOnSave: true }` )
80
80
81
81
const eslintrc = JSON . parse ( await project . read ( '.eslintrc' ) )
82
82
expect ( eslintrc ) . toEqual ( {
83
83
root : true ,
84
84
extends : [ 'plugin:vue/essential' , 'eslint:recommended' ]
85
85
} )
86
86
87
- await project . run ( `${ require . resolve ( '../bin/vue' ) } invoke eslint --config airbnb --lintOn save, commit` )
87
+ await project . run ( `${ require . resolve ( '../bin/vue' ) } invoke eslint --config airbnb --lintOn commit` )
88
88
89
89
await assertUpdates ( project )
90
90
const updatedVueConfig = await project . read ( 'vue.config.js' )
91
- expect ( updatedVueConfig ) . toMatch ( `module.exports = { lintOnSave: true }` )
91
+ expect ( updatedVueConfig ) . toMatch ( `module.exports = { lintOnSave: false }` )
92
92
} )
93
93
94
94
test ( 'invoke with existing files (yaml)' , async ( ) => {
You can’t perform that action at this time.
0 commit comments