Skip to content

Commit 278226a

Browse files
test: update
1 parent 8d62d96 commit 278226a

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

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

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
// Jest Snapshot v1, https://goo.gl/fbAQLP
22

3-
exports[`basic basic should work using "--host localhost --port <port>": stderr 1`] = `
3+
exports[`basic basic should work: stderr 1`] = `
44
"<i> [webpack-dev-server] Project is running at:
5-
<i> [webpack-dev-server] Loopback: http://localhost:<port>/, http://127.0.0.1:<port>/
5+
<i> [webpack-dev-server] Loopback: http://localhost:<port>/
6+
<i> [webpack-dev-server] On Your Network (IPv4): http://<network-ip-v4>:<port>/
7+
<i> [webpack-dev-server] On Your Network (IPv6): http://[<network-ip-v6>]:<port>/
68
<i> [webpack-dev-server] Content not from webpack is served from '<cwd>/public' directory"
79
`;
810

test/cli/basic.test.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,12 @@ describe('basic', () => {
4242
});
4343

4444
describe('basic', () => {
45-
it('should work', async () => {
46-
const { exitCode, stderr } = await testBin('');
45+
it.only('should work', async () => {
46+
const { exitCode, stderr } = await testBin([
47+
// Ideally it should be empty to test without arguments, unfortunately it takes 8080 port and other test can failed
48+
'--port',
49+
port,
50+
]);
4751

4852
expect(exitCode).toEqual(0);
4953
expect(normalizeStderr(stderr, { ipv6: true })).toMatchSnapshot('stderr');

0 commit comments

Comments
 (0)