Skip to content

Commit 9ccf7ea

Browse files
authored
test: refactor cli tests (#3426)
1 parent 70caf42 commit 9ccf7ea

File tree

5 files changed

+723
-1073
lines changed

5 files changed

+723
-1073
lines changed

test/cli/__snapshots__/cli.test.js.snap.webpack4

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -293,8 +293,7 @@ exports[`CLI port option --port is auto: stderr 1`] = `
293293
`;
294294

295295
exports[`CLI port option --port is string: stderr 1`] = `
296-
"<w> [webpack-dev-server] The \\"port\\" specified in options is different from the port passed as an argument. Will be used from arguments.
297-
<i> [webpack-dev-server] Project is running at:
296+
"<i> [webpack-dev-server] Project is running at:
298297
<i> [webpack-dev-server] Loopback: http://localhost:<port>/
299298
<i> [webpack-dev-server] On Your Network (IPv4): http://<network-ip-v4>:<port>/
300299
<i> [webpack-dev-server] On Your Network (IPv6): http://[<network-ip-v6>]:<port>/
@@ -349,14 +348,6 @@ exports[`CLI static option --static-directory: stderr 1`] = `
349348
<i> [webpack-dev-server] Content not from webpack is served from 'static-dir' directory"
350349
`;
351350

352-
exports[`CLI static option --static-directory: stderr 2`] = `
353-
"<i> [webpack-dev-server] Project is running at:
354-
<i> [webpack-dev-server] Loopback: http://localhost:<port>/
355-
<i> [webpack-dev-server] On Your Network (IPv4): http://<network-ip-v4>:<port>/
356-
<i> [webpack-dev-server] On Your Network (IPv6): http://[<network-ip-v6>]:<port>/
357-
<i> [webpack-dev-server] Content not from webpack is served from 'static-dir' directory"
358-
`;
359-
360351
exports[`CLI static option --static-public-path: stderr 1`] = `
361352
"<i> [webpack-dev-server] Project is running at:
362353
<i> [webpack-dev-server] Loopback: http://localhost:<port>/

test/cli/__snapshots__/cli.test.js.snap.webpack5

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -294,8 +294,7 @@ exports[`CLI port option --port is auto: stderr 1`] = `
294294
`;
295295

296296
exports[`CLI port option --port is string: stderr 1`] = `
297-
"<w> [webpack-dev-server] The \\"port\\" specified in options is different from the port passed as an argument. Will be used from arguments.
298-
<i> [webpack-dev-server] Project is running at:
297+
"<i> [webpack-dev-server] Project is running at:
299298
<i> [webpack-dev-server] Loopback: http://localhost:<port>/
300299
<i> [webpack-dev-server] On Your Network (IPv4): http://<network-ip-v4>:<port>/
301300
<i> [webpack-dev-server] On Your Network (IPv6): http://[<network-ip-v6>]:<port>/
@@ -350,14 +349,6 @@ exports[`CLI static option --static-directory: stderr 1`] = `
350349
<i> [webpack-dev-server] Content not from webpack is served from 'static-dir' directory"
351350
`;
352351

353-
exports[`CLI static option --static-directory: stderr 2`] = `
354-
"<i> [webpack-dev-server] Project is running at:
355-
<i> [webpack-dev-server] Loopback: http://localhost:<port>/
356-
<i> [webpack-dev-server] On Your Network (IPv4): http://<network-ip-v4>:<port>/
357-
<i> [webpack-dev-server] On Your Network (IPv6): http://[<network-ip-v6>]:<port>/
358-
<i> [webpack-dev-server] Content not from webpack is served from 'static-dir' directory"
359-
`;
360-
361352
exports[`CLI static option --static-public-path: stderr 1`] = `
362353
"<i> [webpack-dev-server] Project is running at:
363354
<i> [webpack-dev-server] Loopback: http://localhost:<port>/

0 commit comments

Comments
 (0)