Skip to content

Commit 9cdc377

Browse files
test: stability (#4150)
1 parent 79e94b3 commit 9cdc377

3 files changed

+3
-6
lines changed

test/serve/basic/__snapshots__/serve-basic.test.js.snap.devServer4.webpack5

-2
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,6 @@ exports[`basic serve usage should throw error when same ports in multicompiler:
6767
at stack"
6868
`;
6969

70-
exports[`basic serve usage should throw error when same ports in multicompiler: stdout 1`] = `""`;
71-
7270
exports[`basic serve usage should work and log warning on the 'watch' option in a configuration: stderr 1`] = `
7371
"[webpack-cli] No need to use the 'serve' command together with '{ watch: true | false }' or '--watch'/'--no-watch' configuration, it does not make sense.
7472
<i> [webpack-dev-server] Project is running at:

test/serve/basic/__snapshots__/serve-basic.test.js.snap.devServer5.webpack5

-2
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,6 @@ exports[`basic serve usage should throw error when same ports in multicompiler:
6767
at stack"
6868
`;
6969

70-
exports[`basic serve usage should throw error when same ports in multicompiler: stdout 1`] = `""`;
71-
7270
exports[`basic serve usage should work and log warning on the 'watch' option in a configuration: stderr 1`] = `
7371
"[webpack-cli] No need to use the 'serve' command together with '{ watch: true | false }' or '--watch'/'--no-watch' configuration, it does not make sense.
7472
<i> [webpack-dev-server] Project is running at:

test/serve/basic/serve-basic.test.js

+3-2
Original file line numberDiff line numberDiff line change
@@ -481,13 +481,14 @@ describe("basic serve usage", () => {
481481
});
482482

483483
it("should throw error when same ports in multicompiler", async () => {
484-
const { stderr, stdout } = await runWatch(__dirname, [
484+
const { stderr } = await runWatch(__dirname, [
485485
"serve",
486486
"--config",
487487
"same-ports-dev-server.config.js",
488488
]);
489489

490490
expect(normalizeStderr(stderr)).toMatchSnapshot("stderr");
491-
expect(normalizeStdout(stdout)).toMatchSnapshot("stdout");
491+
// Due to racing logic, first dev server can be started and compiled, but then the second always fails
492+
// expect(normalizeStdout(stdout)).toMatchSnapshot("stdout");
492493
});
493494
});

0 commit comments

Comments
 (0)