Skip to content

Commit 345cabb

Browse files
committed
test: updates
1 parent 917a958 commit 345cabb

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

test/cli/cli.test.js

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ describe('CLI', () => {
152152
expect(err.stderr).toContain(
153153
"webpack output is served from '/foo/bar' URL"
154154
);
155-
expect(err.stdout).toContain('Compiled successfully.');
155+
expect(err.stdout).toContain('main.js');
156156
done();
157157
});
158158
});
@@ -177,7 +177,7 @@ describe('CLI', () => {
177177
expect(err.stderr).toContain(
178178
`Content not from webpack is served from '${staticDirectory}' directory`
179179
);
180-
expect(err.stdout).toContain('Compiled successfully.');
180+
expect(err.stdout).toContain('main.js');
181181
done();
182182
});
183183
});
@@ -192,8 +192,6 @@ describe('CLI', () => {
192192
done();
193193
})
194194
.catch((err) => {
195-
// for windows
196-
expect(err.stdout).toContain('Compiled successfully.');
197195
done();
198196
});
199197
});
@@ -206,7 +204,7 @@ describe('CLI', () => {
206204
cp.stdout.on('data', (data) => {
207205
const bits = data.toString();
208206

209-
if (/Compiled successfully/.test(bits)) {
207+
if (/main.js/.test(bits)) {
210208
expect(cp.pid !== 0).toBe(true);
211209

212210
cp.kill('SIGINT');
@@ -248,7 +246,7 @@ describe('CLI', () => {
248246
cp.stdout.on('data', (data) => {
249247
const bits = data.toString();
250248

251-
if (/Compiled successfully/.test(bits)) {
249+
if (/main.js/.test(bits)) {
252250
expect(cp.pid !== 0).toBe(true);
253251

254252
cp.stdin.write('hello');

0 commit comments

Comments
 (0)