Skip to content

Commit 51fb480

Browse files
committed
test: webpack-4
1 parent 93498da commit 51fb480

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

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

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,14 @@ exports[`CLI --https 1`] = `
116116
<i> [webpack-dev-server] Content not from webpack is served from '<cwd>/public' directory"
117117
`;
118118

119+
exports[`CLI --https-request-cert 1`] = `
120+
"<i> [webpack-dev-server] Project is running at:
121+
<i> [webpack-dev-server] Loopback: https://localhost:<port>/
122+
<i> [webpack-dev-server] On Your Network (IPv4): https://<network-ip-v4>:<port>/
123+
<i> [webpack-dev-server] On Your Network (IPv6): https://[<network-ip-v6>]:<port>/
124+
<i> [webpack-dev-server] Content not from webpack is served from '<cwd>/public' directory"
125+
`;
126+
119127
exports[`CLI --no-bonjour 1`] = `
120128
"<i> [webpack-dev-server] Project is running at:
121129
<i> [webpack-dev-server] Loopback: http://localhost:<port>/
@@ -148,6 +156,22 @@ exports[`CLI --no-https 1`] = `
148156
<i> [webpack-dev-server] Content not from webpack is served from '<cwd>/public' directory"
149157
`;
150158

159+
exports[`CLI --no-https-request-cert 1`] = `
160+
"<i> [webpack-dev-server] Project is running at:
161+
<i> [webpack-dev-server] Loopback: https://localhost:<port>/
162+
<i> [webpack-dev-server] On Your Network (IPv4): https://<network-ip-v4>:<port>/
163+
<i> [webpack-dev-server] On Your Network (IPv6): https://[<network-ip-v6>]:<port>/
164+
<i> [webpack-dev-server] Content not from webpack is served from '<cwd>/public' directory"
165+
`;
166+
167+
exports[`CLI https options 1`] = `
168+
"<i> [webpack-dev-server] Project is running at:
169+
<i> [webpack-dev-server] Loopback: https://localhost:<port>/
170+
<i> [webpack-dev-server] On Your Network (IPv4): https://<network-ip-v4>:<port>/
171+
<i> [webpack-dev-server] On Your Network (IPv6): https://[<network-ip-v6>]:<port>/
172+
<i> [webpack-dev-server] Content not from webpack is served from '<cwd>/public' directory"
173+
`;
174+
151175
exports[`CLI should generate correct cli flags 1`] = `
152176
"Usage: webpack serve|s [entries...] [options]
153177

@@ -199,6 +223,13 @@ Options:
199223
--no-live-reload Disables live reloading on changing files.
200224
--https Use HTTPS protocol.
201225
--no-https Do not use HTTPS protocol.
226+
--https-passphrase <value> Passphrase for a pfx file.
227+
--https-key <value> Path to an SSL key.
228+
--https-pfx <value> Path to an SSL pfx file.
229+
--https-cert <value> Path to an SSL certificate.
230+
--https-cacert <value> Path to an SSL CA certificate.
231+
--https-request-cert Request for an SSL certificate.
232+
--no-https-request-cert Do not request for an SSL certificate.
202233
--http2 Use HTTP/2, must be used with HTTPS.
203234
--no-http2 Do not use HTTP/2.
204235
--bonjour Broadcasts the server via ZeroConf

0 commit comments

Comments
 (0)