@@ -152,7 +152,7 @@ describe('CLI', () => {
152
152
expect ( err . stderr ) . toContain (
153
153
"webpack output is served from '/foo/bar' URL"
154
154
) ;
155
- expect ( err . stdout ) . toContain ( 'Compiled successfully. ' ) ;
155
+ expect ( err . stdout ) . toContain ( 'main.js ' ) ;
156
156
done ( ) ;
157
157
} ) ;
158
158
} ) ;
@@ -177,7 +177,7 @@ describe('CLI', () => {
177
177
expect ( err . stderr ) . toContain (
178
178
`Content not from webpack is served from '${ staticDirectory } ' directory`
179
179
) ;
180
- expect ( err . stdout ) . toContain ( 'Compiled successfully. ' ) ;
180
+ expect ( err . stdout ) . toContain ( 'main.js ' ) ;
181
181
done ( ) ;
182
182
} ) ;
183
183
} ) ;
@@ -192,8 +192,6 @@ describe('CLI', () => {
192
192
done ( ) ;
193
193
} )
194
194
. catch ( ( err ) => {
195
- // for windows
196
- expect ( err . stdout ) . toContain ( 'Compiled successfully.' ) ;
197
195
done ( ) ;
198
196
} ) ;
199
197
} ) ;
@@ -206,7 +204,7 @@ describe('CLI', () => {
206
204
cp . stdout . on ( 'data' , ( data ) => {
207
205
const bits = data . toString ( ) ;
208
206
209
- if ( / C o m p i l e d s u c c e s s f u l l y / . test ( bits ) ) {
207
+ if ( / m a i n . j s / . test ( bits ) ) {
210
208
expect ( cp . pid !== 0 ) . toBe ( true ) ;
211
209
212
210
cp . kill ( 'SIGINT' ) ;
@@ -248,7 +246,7 @@ describe('CLI', () => {
248
246
cp . stdout . on ( 'data' , ( data ) => {
249
247
const bits = data . toString ( ) ;
250
248
251
- if ( / C o m p i l e d s u c c e s s f u l l y / . test ( bits ) ) {
249
+ if ( / m a i n . j s / . test ( bits ) ) {
252
250
expect ( cp . pid !== 0 ) . toBe ( true ) ;
253
251
254
252
cp . stdin . write ( 'hello' ) ;
0 commit comments