Skip to content

Commit 2b386fb

Browse files
test: update (#4427)
1 parent 925370e commit 2b386fb

File tree

4 files changed

+208
-200
lines changed

4 files changed

+208
-200
lines changed

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

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`] = `

0 commit comments

Comments
 (0)