Skip to content

Commit f4a1186

Browse files
test: update snapshots
1 parent 42f2d91 commit f4a1186

File tree

2 files changed

+18
-18
lines changed

2 files changed

+18
-18
lines changed

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

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -480,7 +480,7 @@ exports[`options validate should throw an error on the "static" option with '{"d
480480
exports[`options validate should throw an error on the "static" option with '{"publicPath":false}' value 1`] = `
481481
"ValidationError: Invalid configuration object. Object has been initialized using a configuration object that does not match the API schema.
482482
- configuration.static should be one of these:
483-
[non-empty string | object { directory, staticOptions?, publicPath?, serveIndex?, watch? }, ...] | boolean | non-empty string | object { directory, staticOptions?, publicPath?, serveIndex?, watch? }
483+
[non-empty string | object { directory?, staticOptions?, publicPath?, serveIndex?, watch? }, ...] | boolean | non-empty string | object { directory?, staticOptions?, publicPath?, serveIndex?, watch? }
484484
-> It is possible to configure advanced options for serving static files from directory. See the Express documentation for the possible options. https://webpack.js.org/configuration/dev-server/#devserverstatic
485485
Details:
486486
* configuration.static.publicPath should be one of these:
@@ -495,7 +495,7 @@ exports[`options validate should throw an error on the "static" option with '{"p
495495
exports[`options validate should throw an error on the "static" option with '{"serveIndex":"true"}' value 1`] = `
496496
"ValidationError: Invalid configuration object. Object has been initialized using a configuration object that does not match the API schema.
497497
- configuration.static should be one of these:
498-
[non-empty string | object { directory, staticOptions?, publicPath?, serveIndex?, watch? }, ...] | boolean | non-empty string | object { directory, staticOptions?, publicPath?, serveIndex?, watch? }
498+
[non-empty string | object { directory?, staticOptions?, publicPath?, serveIndex?, watch? }, ...] | boolean | non-empty string | object { directory?, staticOptions?, publicPath?, serveIndex?, watch? }
499499
-> It is possible to configure advanced options for serving static files from directory. See the Express documentation for the possible options. https://webpack.js.org/configuration/dev-server/#devserverstatic
500500
Details:
501501
* configuration.static.serveIndex should be one of these:
@@ -510,7 +510,7 @@ exports[`options validate should throw an error on the "static" option with '{"s
510510
exports[`options validate should throw an error on the "static" option with '{"watch":10}' value 1`] = `
511511
"ValidationError: Invalid configuration object. Object has been initialized using a configuration object that does not match the API schema.
512512
- configuration.static should be one of these:
513-
[non-empty string | object { directory, staticOptions?, publicPath?, serveIndex?, watch? }, ...] | boolean | non-empty string | object { directory, staticOptions?, publicPath?, serveIndex?, watch? }
513+
[non-empty string | object { directory?, staticOptions?, publicPath?, serveIndex?, watch? }, ...] | boolean | non-empty string | object { directory?, staticOptions?, publicPath?, serveIndex?, watch? }
514514
-> It is possible to configure advanced options for serving static files from directory. See the Express documentation for the possible options. https://webpack.js.org/configuration/dev-server/#devserverstatic
515515
Details:
516516
* configuration.static.watch should be one of these:
@@ -526,29 +526,29 @@ exports[`options validate should throw an error on the "static" option with '{"w
526526
exports[`options validate should throw an error on the "static" option with '0' value 1`] = `
527527
"ValidationError: Invalid configuration object. Object has been initialized using a configuration object that does not match the API schema.
528528
- configuration.static should be one of these:
529-
[non-empty string | object { directory, staticOptions?, publicPath?, serveIndex?, watch? }, ...] | boolean | non-empty string | object { directory, staticOptions?, publicPath?, serveIndex?, watch? }
529+
[non-empty string | object { directory?, staticOptions?, publicPath?, serveIndex?, watch? }, ...] | boolean | non-empty string | object { directory?, staticOptions?, publicPath?, serveIndex?, watch? }
530530
-> It is possible to configure advanced options for serving static files from directory. See the Express documentation for the possible options. https://webpack.js.org/configuration/dev-server/#devserverstatic
531531
Details:
532532
* configuration.static should be an array:
533-
[non-empty string | object { directory, staticOptions?, publicPath?, serveIndex?, watch? }, ...]
533+
[non-empty string | object { directory?, staticOptions?, publicPath?, serveIndex?, watch? }, ...]
534534
* configuration.static should be a boolean.
535535
* configuration.static should be a non-empty string.
536536
* configuration.static should be an object:
537-
object { directory, staticOptions?, publicPath?, serveIndex?, watch? }"
537+
object { directory?, staticOptions?, publicPath?, serveIndex?, watch? }"
538538
`;
539539

540540
exports[`options validate should throw an error on the "static" option with 'null' value 1`] = `
541541
"ValidationError: Invalid configuration object. Object has been initialized using a configuration object that does not match the API schema.
542542
- configuration.static should be one of these:
543-
[non-empty string | object { directory, staticOptions?, publicPath?, serveIndex?, watch? }, ...] | boolean | non-empty string | object { directory, staticOptions?, publicPath?, serveIndex?, watch? }
543+
[non-empty string | object { directory?, staticOptions?, publicPath?, serveIndex?, watch? }, ...] | boolean | non-empty string | object { directory?, staticOptions?, publicPath?, serveIndex?, watch? }
544544
-> It is possible to configure advanced options for serving static files from directory. See the Express documentation for the possible options. https://webpack.js.org/configuration/dev-server/#devserverstatic
545545
Details:
546546
* configuration.static should be an array:
547-
[non-empty string | object { directory, staticOptions?, publicPath?, serveIndex?, watch? }, ...]
547+
[non-empty string | object { directory?, staticOptions?, publicPath?, serveIndex?, watch? }, ...]
548548
* configuration.static should be a boolean.
549549
* configuration.static should be a non-empty string.
550550
* configuration.static should be an object:
551-
object { directory, staticOptions?, publicPath?, serveIndex?, watch? }"
551+
object { directory?, staticOptions?, publicPath?, serveIndex?, watch? }"
552552
`;
553553

554554
exports[`options validate should throw an error on the "watchFiles" option with '123' value 1`] = `

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

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -480,7 +480,7 @@ exports[`options validate should throw an error on the "static" option with '{"d
480480
exports[`options validate should throw an error on the "static" option with '{"publicPath":false}' value 1`] = `
481481
"ValidationError: Invalid configuration object. Object has been initialized using a configuration object that does not match the API schema.
482482
- configuration.static should be one of these:
483-
[non-empty string | object { directory, staticOptions?, publicPath?, serveIndex?, watch? }, ...] | boolean | non-empty string | object { directory, staticOptions?, publicPath?, serveIndex?, watch? }
483+
[non-empty string | object { directory?, staticOptions?, publicPath?, serveIndex?, watch? }, ...] | boolean | non-empty string | object { directory?, staticOptions?, publicPath?, serveIndex?, watch? }
484484
-> It is possible to configure advanced options for serving static files from directory. See the Express documentation for the possible options. https://webpack.js.org/configuration/dev-server/#devserverstatic
485485
Details:
486486
* configuration.static.publicPath should be one of these:
@@ -495,7 +495,7 @@ exports[`options validate should throw an error on the "static" option with '{"p
495495
exports[`options validate should throw an error on the "static" option with '{"serveIndex":"true"}' value 1`] = `
496496
"ValidationError: Invalid configuration object. Object has been initialized using a configuration object that does not match the API schema.
497497
- configuration.static should be one of these:
498-
[non-empty string | object { directory, staticOptions?, publicPath?, serveIndex?, watch? }, ...] | boolean | non-empty string | object { directory, staticOptions?, publicPath?, serveIndex?, watch? }
498+
[non-empty string | object { directory?, staticOptions?, publicPath?, serveIndex?, watch? }, ...] | boolean | non-empty string | object { directory?, staticOptions?, publicPath?, serveIndex?, watch? }
499499
-> It is possible to configure advanced options for serving static files from directory. See the Express documentation for the possible options. https://webpack.js.org/configuration/dev-server/#devserverstatic
500500
Details:
501501
* configuration.static.serveIndex should be one of these:
@@ -510,7 +510,7 @@ exports[`options validate should throw an error on the "static" option with '{"s
510510
exports[`options validate should throw an error on the "static" option with '{"watch":10}' value 1`] = `
511511
"ValidationError: Invalid configuration object. Object has been initialized using a configuration object that does not match the API schema.
512512
- configuration.static should be one of these:
513-
[non-empty string | object { directory, staticOptions?, publicPath?, serveIndex?, watch? }, ...] | boolean | non-empty string | object { directory, staticOptions?, publicPath?, serveIndex?, watch? }
513+
[non-empty string | object { directory?, staticOptions?, publicPath?, serveIndex?, watch? }, ...] | boolean | non-empty string | object { directory?, staticOptions?, publicPath?, serveIndex?, watch? }
514514
-> It is possible to configure advanced options for serving static files from directory. See the Express documentation for the possible options. https://webpack.js.org/configuration/dev-server/#devserverstatic
515515
Details:
516516
* configuration.static.watch should be one of these:
@@ -526,29 +526,29 @@ exports[`options validate should throw an error on the "static" option with '{"w
526526
exports[`options validate should throw an error on the "static" option with '0' value 1`] = `
527527
"ValidationError: Invalid configuration object. Object has been initialized using a configuration object that does not match the API schema.
528528
- configuration.static should be one of these:
529-
[non-empty string | object { directory, staticOptions?, publicPath?, serveIndex?, watch? }, ...] | boolean | non-empty string | object { directory, staticOptions?, publicPath?, serveIndex?, watch? }
529+
[non-empty string | object { directory?, staticOptions?, publicPath?, serveIndex?, watch? }, ...] | boolean | non-empty string | object { directory?, staticOptions?, publicPath?, serveIndex?, watch? }
530530
-> It is possible to configure advanced options for serving static files from directory. See the Express documentation for the possible options. https://webpack.js.org/configuration/dev-server/#devserverstatic
531531
Details:
532532
* configuration.static should be an array:
533-
[non-empty string | object { directory, staticOptions?, publicPath?, serveIndex?, watch? }, ...]
533+
[non-empty string | object { directory?, staticOptions?, publicPath?, serveIndex?, watch? }, ...]
534534
* configuration.static should be a boolean.
535535
* configuration.static should be a non-empty string.
536536
* configuration.static should be an object:
537-
object { directory, staticOptions?, publicPath?, serveIndex?, watch? }"
537+
object { directory?, staticOptions?, publicPath?, serveIndex?, watch? }"
538538
`;
539539

540540
exports[`options validate should throw an error on the "static" option with 'null' value 1`] = `
541541
"ValidationError: Invalid configuration object. Object has been initialized using a configuration object that does not match the API schema.
542542
- configuration.static should be one of these:
543-
[non-empty string | object { directory, staticOptions?, publicPath?, serveIndex?, watch? }, ...] | boolean | non-empty string | object { directory, staticOptions?, publicPath?, serveIndex?, watch? }
543+
[non-empty string | object { directory?, staticOptions?, publicPath?, serveIndex?, watch? }, ...] | boolean | non-empty string | object { directory?, staticOptions?, publicPath?, serveIndex?, watch? }
544544
-> It is possible to configure advanced options for serving static files from directory. See the Express documentation for the possible options. https://webpack.js.org/configuration/dev-server/#devserverstatic
545545
Details:
546546
* configuration.static should be an array:
547-
[non-empty string | object { directory, staticOptions?, publicPath?, serveIndex?, watch? }, ...]
547+
[non-empty string | object { directory?, staticOptions?, publicPath?, serveIndex?, watch? }, ...]
548548
* configuration.static should be a boolean.
549549
* configuration.static should be a non-empty string.
550550
* configuration.static should be an object:
551-
object { directory, staticOptions?, publicPath?, serveIndex?, watch? }"
551+
object { directory?, staticOptions?, publicPath?, serveIndex?, watch? }"
552552
`;
553553

554554
exports[`options validate should throw an error on the "watchFiles" option with '123' value 1`] = `

0 commit comments

Comments
 (0)