File tree 2 files changed +9
-7
lines changed
cli-plugin-eslint/__tests__
2 files changed +9
-7
lines changed Original file line number Diff line number Diff line change @@ -72,15 +72,17 @@ test('should work', async () => {
72
72
let isFirstMsg = true
73
73
server . stdout . on ( 'data' , data => {
74
74
data = data . toString ( )
75
- if ( data . match ( / C o m p i l e d w i t h \d w a r n i n g / ) ) {
75
+ if ( isFirstMsg ) {
76
76
// should fail on start
77
- expect ( isFirstMsg ) . toBe ( true )
77
+ expect ( data ) . toMatch ( / C o m p i l e d w i t h \d w a r n i n g / )
78
78
isFirstMsg = false
79
+
79
80
// fix it
80
81
write ( 'src/App.vue' , app )
81
82
} else if ( data . match ( / C o m p i l e d s u c c e s s f u l l y / ) ) {
82
- // should compile on 2nd update
83
- expect ( isFirstMsg ) . toBe ( false )
83
+ // should compile on the subsequent update
84
+ // (note: in CI environment this may not be the exact 2nd update,
85
+ // so we use data.match as a termination condition rather than a test case)
84
86
server . stdin . write ( 'close' )
85
87
done ( )
86
88
}
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " @vue/cli-service" ,
3
- "version" : " 3.1.2 " ,
3
+ "version" : " 3.1.3 " ,
4
4
"description" : " local service for vue-cli projects" ,
5
5
"main" : " lib/Service.js" ,
6
6
"bin" : {
30
30
"acorn-walk" : " ^6.1.0" ,
31
31
"address" : " ^1.0.3" ,
32
32
"autoprefixer" : " ^8.6.5" ,
33
- "cache-loader" : " 1.2.2 " ,
33
+ "cache-loader" : " ^ 1.2.5 " ,
34
34
"case-sensitive-paths-webpack-plugin" : " ^2.1.2" ,
35
35
"chalk" : " ^2.4.1" ,
36
36
"clipboardy" : " ^1.2.3" ,
65
65
"thread-loader" : " ^1.2.0" ,
66
66
"url-loader" : " ^1.1.2" ,
67
67
"vue-loader" : " ^15.4.2" ,
68
- "webpack" : " ^4.23 .1" ,
68
+ "webpack" : " ^4.18 .1" ,
69
69
"webpack-bundle-analyzer" : " ^3.0.3" ,
70
70
"webpack-chain" : " ^4.11.0" ,
71
71
"webpack-dev-server" : " ^3.1.10" ,
You can’t perform that action at this time.
0 commit comments