You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: test/__snapshots__/validate-options.test.js.snap.webpack4
+31-31Lines changed: 31 additions & 31 deletions
Original file line number
Diff line number
Diff line change
@@ -335,16 +335,16 @@ exports[`options validate should throw an error on the "open" option with '[]' v
335
335
exports[`options validate should throw an error on the "open" option with '{"app":true}' value 1`] = `
336
336
"ValidationError: Invalid configuration object. Object has been initialized using a configuration object that does not match the API schema.
337
337
- configuration.open should be one of these:
338
-
boolean | non-empty string | object { target?, app? } | [non-empty string | object { target?, app? }, ...] (should not have fewer than 1 item)
338
+
[non-empty string | object { target?, app? }, ...] (should not have fewer than 1 item) | boolean | non-empty string | object { target?, app? }
339
339
-> Tells dev-server to open the browser after server had been started. Set it to true to open your default browser. https://webpack.js.org/configuration/dev-server/#devserveropen
340
340
Details:
341
341
* configuration.open.app should be one of these:
342
-
non-empty string | [non-empty string, ...] (should not have fewer than 1 item)
342
+
[non-empty string, ...] (should not have fewer than 1 item) | non-empty string
343
343
-> Open specified browser.
344
344
Details:
345
-
* configuration.open.app should be a non-empty string.
346
345
* configuration.open.app should be an array:
347
-
[non-empty string, ...] (should not have fewer than 1 item)"
346
+
[non-empty string, ...] (should not have fewer than 1 item)
347
+
* configuration.open.app should be a non-empty string."
348
348
`;
349
349
350
350
exports[`options validate should throw an error on the "open" option with '{"foo":"bar"}' value 1`] = `
@@ -356,17 +356,17 @@ exports[`options validate should throw an error on the "open" option with '{"foo
356
356
exports[`options validate should throw an error on the "open" option with '{"target":90}' value 1`] = `
357
357
"ValidationError: Invalid configuration object. Object has been initialized using a configuration object that does not match the API schema.
358
358
- configuration.open should be one of these:
359
-
boolean | non-empty string | object { target?, app? } | [non-empty string | object { target?, app? }, ...] (should not have fewer than 1 item)
359
+
[non-empty string | object { target?, app? }, ...] (should not have fewer than 1 item) | boolean | non-empty string | object { target?, app? }
360
360
-> Tells dev-server to open the browser after server had been started. Set it to true to open your default browser. https://webpack.js.org/configuration/dev-server/#devserveropen
361
361
Details:
362
362
* configuration.open.target should be one of these:
363
-
boolean | non-empty string | [non-empty string, ...] (should not have fewer than 1 item)
363
+
[non-empty string, ...] (should not have fewer than 1 item) | boolean | non-empty string
364
364
-> Open specified route in browser.
365
365
Details:
366
-
* configuration.open.target should be a boolean.
367
-
* configuration.open.target should be a non-empty string.
368
366
* configuration.open.target should be an array:
369
-
[non-empty string, ...] (should not have fewer than 1 item)"
367
+
[non-empty string, ...] (should not have fewer than 1 item)
368
+
* configuration.open.target should be a boolean.
369
+
* configuration.open.target should be a non-empty string."
370
370
`;
371
371
372
372
exports[`options validate should throw an error on the "port" option with 'false' value 1`] = `
@@ -440,22 +440,22 @@ exports[`options validate should throw an error on the "static" option with '{"d
440
440
exports[`options validate should throw an error on the "static" option with '{"publicPath":false}' value 1`] = `
441
441
"ValidationError: Invalid configuration object. Object has been initialized using a configuration object that does not match the API schema.
-> 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
445
445
Details:
446
446
* configuration.static.publicPath should be one of these:
447
-
non-empty string | [non-empty string, ...] (should not have fewer than 1 item)
447
+
[non-empty string, ...] (should not have fewer than 1 item) | non-empty string
448
448
-> The bundled files will be available in the browser under this path.
449
449
Details:
450
-
* configuration.static.publicPath should be a non-empty string.
451
450
* configuration.static.publicPath should be an array:
452
-
[non-empty string, ...] (should not have fewer than 1 item)"
451
+
[non-empty string, ...] (should not have fewer than 1 item)
452
+
* configuration.static.publicPath should be a non-empty string."
453
453
`;
454
454
455
455
exports[`options validate should throw an error on the "static" option with '{"serveIndex":"true"}' value 1`] = `
456
456
"ValidationError: Invalid configuration object. Object has been initialized using a configuration object that does not match the API schema.
-> 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
460
460
Details:
461
461
* configuration.static.serveIndex should be one of these:
@@ -470,7 +470,7 @@ exports[`options validate should throw an error on the "static" option with '{"s
470
470
exports[`options validate should throw an error on the "static" option with '{"watch":10}' value 1`] = `
471
471
"ValidationError: Invalid configuration object. Object has been initialized using a configuration object that does not match the API schema.
-> 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
475
475
Details:
476
476
* configuration.static.watch should be one of these:
@@ -486,55 +486,55 @@ exports[`options validate should throw an error on the "static" option with '{"w
486
486
exports[`options validate should throw an error on the "static" option with '0' value 1`] = `
487
487
"ValidationError: Invalid configuration object. Object has been initialized using a configuration object that does not match the API schema.
-> 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
491
491
Details:
492
+
* configuration.static should be an array:
493
+
[non-empty string | object { directory?, staticOptions?, publicPath?, serveIndex?, watch? }, ...] (should not have fewer than 1 item)
492
494
* configuration.static should be a boolean.
493
495
* configuration.static should be a non-empty string.
-> 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
505
505
Details:
506
+
* configuration.static should be an array:
507
+
[non-empty string | object { directory?, staticOptions?, publicPath?, serveIndex?, watch? }, ...] (should not have fewer than 1 item)
506
508
* configuration.static should be a boolean.
507
509
* configuration.static should be a non-empty string.
0 commit comments