Skip to content

Commit b2fb287

Browse files
committed
Update snapshots
1 parent 57cd5a6 commit b2fb287

File tree

6 files changed

+7
-82
lines changed

6 files changed

+7
-82
lines changed

test/__snapshots__/validate-options.test.js.snap.webpack5

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -90,19 +90,19 @@ exports[`options validate should throw an error on the "client" option with '{"o
9090
-> Read more at https://webpack.js.org/configuration/dev-server/#devserverclient
9191
Details:
9292
* options.client.overlay should be one of these:
93-
boolean | object { errors?, warnings? }
93+
boolean | object { errors?, warnings?, trustedTypesPolicyName? }
9494
Details:
9595
* options.client.overlay should be a boolean.
9696
-> Enables a full-screen overlay in the browser when there are compiler errors or warnings.
9797
-> Read more at https://webpack.js.org/configuration/dev-server/#overlay
9898
* options.client.overlay should be an object:
99-
object { errors?, warnings? }"
99+
object { errors?, warnings?, trustedTypesPolicyName? }"
100100
`;
101101

102102
exports[`options validate should throw an error on the "client" option with '{"overlay":{"arbitrary":""}}' value 1`] = `
103103
"ValidationError: Invalid options object. Dev Server has been initialized using an options object that does not match the API schema.
104104
- options.client.overlay has an unknown property 'arbitrary'. These properties are valid:
105-
object { errors?, warnings? }"
105+
object { errors?, warnings?, trustedTypesPolicyName? }"
106106
`;
107107

108108
exports[`options validate should throw an error on the "client" option with '{"overlay":{"errors":""}}' value 1`] = `

test/cli/__snapshots__/http2-option.test.js.snap.webpack5

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

33
exports[`"http2" CLI option should work using "--http2" 1`] = `
4-
"<i> [webpack-dev-server] Generating SSL certificate...
5-
<i> [webpack-dev-server] SSL certificate: <cwd>/node_modules/.cache/webpack-dev-server/server.pem
4+
"<i> [webpack-dev-server] SSL certificate: <cwd>/node_modules/.cache/webpack-dev-server/server.pem
65
<i> [webpack-dev-server] Project is running at:
76
<i> Loopback: https://localhost:<port>/, https://<ip-v4>:<port>/, https://[<ip-v6>]:<port>/
87
<i> [webpack-dev-server] On Your Network (IPv4): https://<ip-v4>:<port>/

test/cli/__snapshots__/https-option.test.js.snap.webpack5

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,7 @@ exports[`"https" CLI option should warn using "--https-cacert" and "--https-ca"
1010
`;
1111

1212
exports[`"https" CLI option should work using "--https" 1`] = `
13-
"<i> [webpack-dev-server] Generating SSL certificate...
14-
<i> [webpack-dev-server] SSL certificate: <cwd>/node_modules/.cache/webpack-dev-server/server.pem
13+
"<i> [webpack-dev-server] SSL certificate: <cwd>/node_modules/.cache/webpack-dev-server/server.pem
1514
<i> [webpack-dev-server] Project is running at:
1615
<i> Loopback: https://localhost:<port>/, https://<ip-v4>:<port>/, https://[<ip-v6>]:<port>/
1716
<i> [webpack-dev-server] On Your Network (IPv4): https://<ip-v4>:<port>/

test/cli/__snapshots__/server-option.test.js.snap.webpack5

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,7 @@ exports[`"server" CLI options should work using "--server-options-key-reset --se
5252
`;
5353

5454
exports[`"server" CLI options should work using "--server-options-request-cert" 1`] = `
55-
"<i> [webpack-dev-server] Generating SSL certificate...
56-
<i> [webpack-dev-server] SSL certificate: <cwd>/node_modules/.cache/webpack-dev-server/server.pem
55+
"<i> [webpack-dev-server] SSL certificate: <cwd>/node_modules/.cache/webpack-dev-server/server.pem
5756
<i> [webpack-dev-server] Project is running at:
5857
<i> Loopback: https://localhost:<port>/, https://<ip-v4>:<port>/, https://[<ip-v6>]:<port>/
5958
<i> [webpack-dev-server] On Your Network (IPv4): https://<ip-v4>:<port>/

test/e2e/__snapshots__/hot-and-live-reload.test.js.snap.webpack5

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ exports[`hot and live reload should work and allow to disable live reload using
5454
Array [
5555
"[webpack-dev-server] Live Reloading enabled.",
5656
"[webpack-dev-server] App updated. Recompiling...",
57+
"[webpack-dev-server] App updated. Recompiling...",
5758
]
5859
`;
5960

test/e2e/__snapshots__/overlay.test.js.snap.webpack5

Lines changed: 0 additions & 73 deletions
Original file line numberDiff line numberDiff line change
@@ -364,14 +364,6 @@ exports[`overlay should not show initially, then show on an error, then show oth
364364
"
365365
`;
366366

367-
exports[`overlay should not show overlay when Trusted Types are enabled, but policy is not allowed: page html 1`] = `
368-
"<body>
369-
<h1>webpack-dev-server is running...</h1>
370-
<script type=\\"text/javascript\\" charset=\\"utf-8\\" src=\\"/main.js\\"></script>
371-
</body>
372-
"
373-
`;
374-
375367
exports[`overlay should show a warning after invalidation: overlay html 1`] = `
376368
"<body>
377369
<div
@@ -1327,68 +1319,3 @@ exports[`overlay should show an error when "client.overlay.warnings" is "true":
13271319
</body>
13281320
"
13291321
`;
1330-
1331-
exports[`overlay should show overlay when Trusted Types are enabled: overlay html 1`] = `
1332-
"<body>
1333-
<div
1334-
id=\\"webpack-dev-server-client-overlay-div\\"
1335-
style=\\"
1336-
position: fixed;
1337-
box-sizing: border-box;
1338-
inset: 0px;
1339-
width: 100vw;
1340-
height: 100vh;
1341-
background-color: rgba(0, 0, 0, 0.85);
1342-
color: rgb(232, 232, 232);
1343-
font-family: Menlo, Consolas, monospace;
1344-
font-size: large;
1345-
padding: 2rem;
1346-
line-height: 1.2;
1347-
white-space: pre-wrap;
1348-
overflow: auto;
1349-
\\"
1350-
>
1351-
<span>Compiled with problems:</span
1352-
><button
1353-
style=\\"
1354-
background: transparent;
1355-
border: none;
1356-
font-size: 20px;
1357-
font-weight: bold;
1358-
color: white;
1359-
cursor: pointer;
1360-
float: right;
1361-
\\"
1362-
>
1363-
X</button
1364-
><br /><br />
1365-
<div>
1366-
<span style=\\"color: rgb(227, 96, 73)\\">ERROR</span><br /><br />
1367-
<div>Error from compilation. Can't find 'test' module.</div>
1368-
<br /><br />
1369-
</div>
1370-
</div>
1371-
</body>
1372-
"
1373-
`;
1374-
1375-
exports[`overlay should show overlay when Trusted Types are enabled: page html 1`] = `
1376-
"<body>
1377-
<h1>webpack-dev-server is running...</h1>
1378-
<script type=\\"text/javascript\\" charset=\\"utf-8\\" src=\\"/main.js\\"></script>
1379-
1380-
<iframe
1381-
id=\\"webpack-dev-server-client-overlay\\"
1382-
src=\\"about:blank\\"
1383-
style=\\"
1384-
position: fixed;
1385-
inset: 0px;
1386-
width: 100vw;
1387-
height: 100vh;
1388-
border: none;
1389-
z-index: 2147483647;
1390-
\\"
1391-
></iframe>
1392-
</body>
1393-
"
1394-
`;

0 commit comments

Comments
 (0)