Skip to content

Commit 28d89da

Browse files
authored
test: e2e tests for host and port options (#3567)
1 parent cb3d481 commit 28d89da

File tree

4 files changed

+538
-0
lines changed

4 files changed

+538
-0
lines changed
Lines changed: 166 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,166 @@
1+
// Jest Snapshot v1, https://goo.gl/fbAQLP
2+
3+
exports[`host and port should work using "0.0.0.0" host and "auto" port: console messages 1`] = `
4+
Array [
5+
"[HMR] Waiting for update signal from WDS...",
6+
"Hey.",
7+
"[webpack-dev-server] Hot Module Replacement enabled.",
8+
"[webpack-dev-server] Live Reloading enabled.",
9+
]
10+
`;
11+
12+
exports[`host and port should work using "0.0.0.0" host and "auto" port: page errors 1`] = `Array []`;
13+
14+
exports[`host and port should work using "0.0.0.0" host and port as number: console messages 1`] = `
15+
Array [
16+
"[HMR] Waiting for update signal from WDS...",
17+
"Hey.",
18+
"[webpack-dev-server] Hot Module Replacement enabled.",
19+
"[webpack-dev-server] Live Reloading enabled.",
20+
]
21+
`;
22+
23+
exports[`host and port should work using "0.0.0.0" host and port as number: page errors 1`] = `Array []`;
24+
25+
exports[`host and port should work using "0.0.0.0" host and port as string: console messages 1`] = `
26+
Array [
27+
"[HMR] Waiting for update signal from WDS...",
28+
"Hey.",
29+
"[webpack-dev-server] Hot Module Replacement enabled.",
30+
"[webpack-dev-server] Live Reloading enabled.",
31+
]
32+
`;
33+
34+
exports[`host and port should work using "0.0.0.0" host and port as string: page errors 1`] = `Array []`;
35+
36+
exports[`host and port should work using "127.0.0.1" host and "auto" port: console messages 1`] = `
37+
Array [
38+
"[HMR] Waiting for update signal from WDS...",
39+
"Hey.",
40+
"[webpack-dev-server] Hot Module Replacement enabled.",
41+
"[webpack-dev-server] Live Reloading enabled.",
42+
]
43+
`;
44+
45+
exports[`host and port should work using "127.0.0.1" host and "auto" port: page errors 1`] = `Array []`;
46+
47+
exports[`host and port should work using "127.0.0.1" host and port as number: console messages 1`] = `
48+
Array [
49+
"[HMR] Waiting for update signal from WDS...",
50+
"Hey.",
51+
"[webpack-dev-server] Hot Module Replacement enabled.",
52+
"[webpack-dev-server] Live Reloading enabled.",
53+
]
54+
`;
55+
56+
exports[`host and port should work using "127.0.0.1" host and port as number: page errors 1`] = `Array []`;
57+
58+
exports[`host and port should work using "127.0.0.1" host and port as string: console messages 1`] = `
59+
Array [
60+
"[HMR] Waiting for update signal from WDS...",
61+
"Hey.",
62+
"[webpack-dev-server] Hot Module Replacement enabled.",
63+
"[webpack-dev-server] Live Reloading enabled.",
64+
]
65+
`;
66+
67+
exports[`host and port should work using "127.0.0.1" host and port as string: page errors 1`] = `Array []`;
68+
69+
exports[`host and port should work using "local-ip" host and "auto" port: console messages 1`] = `
70+
Array [
71+
"[HMR] Waiting for update signal from WDS...",
72+
"Hey.",
73+
"[webpack-dev-server] Hot Module Replacement enabled.",
74+
"[webpack-dev-server] Live Reloading enabled.",
75+
]
76+
`;
77+
78+
exports[`host and port should work using "local-ip" host and "auto" port: page errors 1`] = `Array []`;
79+
80+
exports[`host and port should work using "local-ip" host and port as number: console messages 1`] = `
81+
Array [
82+
"[HMR] Waiting for update signal from WDS...",
83+
"Hey.",
84+
"[webpack-dev-server] Hot Module Replacement enabled.",
85+
"[webpack-dev-server] Live Reloading enabled.",
86+
]
87+
`;
88+
89+
exports[`host and port should work using "local-ip" host and port as number: page errors 1`] = `Array []`;
90+
91+
exports[`host and port should work using "local-ip" host and port as string: console messages 1`] = `
92+
Array [
93+
"[HMR] Waiting for update signal from WDS...",
94+
"Hey.",
95+
"[webpack-dev-server] Hot Module Replacement enabled.",
96+
"[webpack-dev-server] Live Reloading enabled.",
97+
]
98+
`;
99+
100+
exports[`host and port should work using "local-ip" host and port as string: page errors 1`] = `Array []`;
101+
102+
exports[`host and port should work using "local-ipv4" host and "auto" port: console messages 1`] = `
103+
Array [
104+
"[HMR] Waiting for update signal from WDS...",
105+
"Hey.",
106+
"[webpack-dev-server] Hot Module Replacement enabled.",
107+
"[webpack-dev-server] Live Reloading enabled.",
108+
]
109+
`;
110+
111+
exports[`host and port should work using "local-ipv4" host and "auto" port: page errors 1`] = `Array []`;
112+
113+
exports[`host and port should work using "local-ipv4" host and port as number: console messages 1`] = `
114+
Array [
115+
"[HMR] Waiting for update signal from WDS...",
116+
"Hey.",
117+
"[webpack-dev-server] Hot Module Replacement enabled.",
118+
"[webpack-dev-server] Live Reloading enabled.",
119+
]
120+
`;
121+
122+
exports[`host and port should work using "local-ipv4" host and port as number: page errors 1`] = `Array []`;
123+
124+
exports[`host and port should work using "local-ipv4" host and port as string: console messages 1`] = `
125+
Array [
126+
"[HMR] Waiting for update signal from WDS...",
127+
"Hey.",
128+
"[webpack-dev-server] Hot Module Replacement enabled.",
129+
"[webpack-dev-server] Live Reloading enabled.",
130+
]
131+
`;
132+
133+
exports[`host and port should work using "local-ipv4" host and port as string: page errors 1`] = `Array []`;
134+
135+
exports[`host and port should work using "localhost" host and "auto" port: console messages 1`] = `
136+
Array [
137+
"[HMR] Waiting for update signal from WDS...",
138+
"Hey.",
139+
"[webpack-dev-server] Hot Module Replacement enabled.",
140+
"[webpack-dev-server] Live Reloading enabled.",
141+
]
142+
`;
143+
144+
exports[`host and port should work using "localhost" host and "auto" port: page errors 1`] = `Array []`;
145+
146+
exports[`host and port should work using "localhost" host and port as number: console messages 1`] = `
147+
Array [
148+
"[HMR] Waiting for update signal from WDS...",
149+
"Hey.",
150+
"[webpack-dev-server] Hot Module Replacement enabled.",
151+
"[webpack-dev-server] Live Reloading enabled.",
152+
]
153+
`;
154+
155+
exports[`host and port should work using "localhost" host and port as number: page errors 1`] = `Array []`;
156+
157+
exports[`host and port should work using "localhost" host and port as string: console messages 1`] = `
158+
Array [
159+
"[HMR] Waiting for update signal from WDS...",
160+
"Hey.",
161+
"[webpack-dev-server] Hot Module Replacement enabled.",
162+
"[webpack-dev-server] Live Reloading enabled.",
163+
]
164+
`;
165+
166+
exports[`host and port should work using "localhost" host and port as string: page errors 1`] = `Array []`;
Lines changed: 166 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,166 @@
1+
// Jest Snapshot v1, https://goo.gl/fbAQLP
2+
3+
exports[`host and port should work using "0.0.0.0" host and "auto" port: console messages 1`] = `
4+
Array [
5+
"[HMR] Waiting for update signal from WDS...",
6+
"Hey.",
7+
"[webpack-dev-server] Hot Module Replacement enabled.",
8+
"[webpack-dev-server] Live Reloading enabled.",
9+
]
10+
`;
11+
12+
exports[`host and port should work using "0.0.0.0" host and "auto" port: page errors 1`] = `Array []`;
13+
14+
exports[`host and port should work using "0.0.0.0" host and port as number: console messages 1`] = `
15+
Array [
16+
"[HMR] Waiting for update signal from WDS...",
17+
"Hey.",
18+
"[webpack-dev-server] Hot Module Replacement enabled.",
19+
"[webpack-dev-server] Live Reloading enabled.",
20+
]
21+
`;
22+
23+
exports[`host and port should work using "0.0.0.0" host and port as number: page errors 1`] = `Array []`;
24+
25+
exports[`host and port should work using "0.0.0.0" host and port as string: console messages 1`] = `
26+
Array [
27+
"[HMR] Waiting for update signal from WDS...",
28+
"Hey.",
29+
"[webpack-dev-server] Hot Module Replacement enabled.",
30+
"[webpack-dev-server] Live Reloading enabled.",
31+
]
32+
`;
33+
34+
exports[`host and port should work using "0.0.0.0" host and port as string: page errors 1`] = `Array []`;
35+
36+
exports[`host and port should work using "127.0.0.1" host and "auto" port: console messages 1`] = `
37+
Array [
38+
"[HMR] Waiting for update signal from WDS...",
39+
"Hey.",
40+
"[webpack-dev-server] Hot Module Replacement enabled.",
41+
"[webpack-dev-server] Live Reloading enabled.",
42+
]
43+
`;
44+
45+
exports[`host and port should work using "127.0.0.1" host and "auto" port: page errors 1`] = `Array []`;
46+
47+
exports[`host and port should work using "127.0.0.1" host and port as number: console messages 1`] = `
48+
Array [
49+
"[HMR] Waiting for update signal from WDS...",
50+
"Hey.",
51+
"[webpack-dev-server] Hot Module Replacement enabled.",
52+
"[webpack-dev-server] Live Reloading enabled.",
53+
]
54+
`;
55+
56+
exports[`host and port should work using "127.0.0.1" host and port as number: page errors 1`] = `Array []`;
57+
58+
exports[`host and port should work using "127.0.0.1" host and port as string: console messages 1`] = `
59+
Array [
60+
"[HMR] Waiting for update signal from WDS...",
61+
"Hey.",
62+
"[webpack-dev-server] Hot Module Replacement enabled.",
63+
"[webpack-dev-server] Live Reloading enabled.",
64+
]
65+
`;
66+
67+
exports[`host and port should work using "127.0.0.1" host and port as string: page errors 1`] = `Array []`;
68+
69+
exports[`host and port should work using "local-ip" host and "auto" port: console messages 1`] = `
70+
Array [
71+
"[HMR] Waiting for update signal from WDS...",
72+
"Hey.",
73+
"[webpack-dev-server] Hot Module Replacement enabled.",
74+
"[webpack-dev-server] Live Reloading enabled.",
75+
]
76+
`;
77+
78+
exports[`host and port should work using "local-ip" host and "auto" port: page errors 1`] = `Array []`;
79+
80+
exports[`host and port should work using "local-ip" host and port as number: console messages 1`] = `
81+
Array [
82+
"[HMR] Waiting for update signal from WDS...",
83+
"Hey.",
84+
"[webpack-dev-server] Hot Module Replacement enabled.",
85+
"[webpack-dev-server] Live Reloading enabled.",
86+
]
87+
`;
88+
89+
exports[`host and port should work using "local-ip" host and port as number: page errors 1`] = `Array []`;
90+
91+
exports[`host and port should work using "local-ip" host and port as string: console messages 1`] = `
92+
Array [
93+
"[HMR] Waiting for update signal from WDS...",
94+
"Hey.",
95+
"[webpack-dev-server] Hot Module Replacement enabled.",
96+
"[webpack-dev-server] Live Reloading enabled.",
97+
]
98+
`;
99+
100+
exports[`host and port should work using "local-ip" host and port as string: page errors 1`] = `Array []`;
101+
102+
exports[`host and port should work using "local-ipv4" host and "auto" port: console messages 1`] = `
103+
Array [
104+
"[HMR] Waiting for update signal from WDS...",
105+
"Hey.",
106+
"[webpack-dev-server] Hot Module Replacement enabled.",
107+
"[webpack-dev-server] Live Reloading enabled.",
108+
]
109+
`;
110+
111+
exports[`host and port should work using "local-ipv4" host and "auto" port: page errors 1`] = `Array []`;
112+
113+
exports[`host and port should work using "local-ipv4" host and port as number: console messages 1`] = `
114+
Array [
115+
"[HMR] Waiting for update signal from WDS...",
116+
"Hey.",
117+
"[webpack-dev-server] Hot Module Replacement enabled.",
118+
"[webpack-dev-server] Live Reloading enabled.",
119+
]
120+
`;
121+
122+
exports[`host and port should work using "local-ipv4" host and port as number: page errors 1`] = `Array []`;
123+
124+
exports[`host and port should work using "local-ipv4" host and port as string: console messages 1`] = `
125+
Array [
126+
"[HMR] Waiting for update signal from WDS...",
127+
"Hey.",
128+
"[webpack-dev-server] Hot Module Replacement enabled.",
129+
"[webpack-dev-server] Live Reloading enabled.",
130+
]
131+
`;
132+
133+
exports[`host and port should work using "local-ipv4" host and port as string: page errors 1`] = `Array []`;
134+
135+
exports[`host and port should work using "localhost" host and "auto" port: console messages 1`] = `
136+
Array [
137+
"[HMR] Waiting for update signal from WDS...",
138+
"Hey.",
139+
"[webpack-dev-server] Hot Module Replacement enabled.",
140+
"[webpack-dev-server] Live Reloading enabled.",
141+
]
142+
`;
143+
144+
exports[`host and port should work using "localhost" host and "auto" port: page errors 1`] = `Array []`;
145+
146+
exports[`host and port should work using "localhost" host and port as number: console messages 1`] = `
147+
Array [
148+
"[HMR] Waiting for update signal from WDS...",
149+
"Hey.",
150+
"[webpack-dev-server] Hot Module Replacement enabled.",
151+
"[webpack-dev-server] Live Reloading enabled.",
152+
]
153+
`;
154+
155+
exports[`host and port should work using "localhost" host and port as number: page errors 1`] = `Array []`;
156+
157+
exports[`host and port should work using "localhost" host and port as string: console messages 1`] = `
158+
Array [
159+
"[HMR] Waiting for update signal from WDS...",
160+
"Hey.",
161+
"[webpack-dev-server] Hot Module Replacement enabled.",
162+
"[webpack-dev-server] Live Reloading enabled.",
163+
]
164+
`;
165+
166+
exports[`host and port should work using "localhost" host and port as string: page errors 1`] = `Array []`;

0 commit comments

Comments
 (0)