@@ -781,6 +781,14 @@ exports[`options validate should throw an error on the "static" option with '{"s
781
781
object { … }"
782
782
`;
783
783
784
+ exports[`options validate should throw an error on the "static" option with '{"watch":{"invalid":true}}' value 1`] = `
785
+ "ValidationError: Invalid options object. Dev Server has been initialized using an options object that does not match the API schema.
786
+ - options.static.watch has an unknown property 'invalid'. These properties are valid:
787
+ object { persistent?, ignored?, ignoreInitial?, followSymlinks?, cwd?, disableGlobbing?, usePolling?, interval?, binaryInterval?, alwaysStat?, depth?, awaitWriteFinish?, ignorePermissionErrors?, atomic? }
788
+ -> Configure advanced options for watching. See the chokidar documentation for the possible options.
789
+ -> Read more at https://github.com/paulmillr/chokidar#api"
790
+ `;
791
+
784
792
exports[`options validate should throw an error on the "static" option with '{"watch":10}' value 1`] = `
785
793
"ValidationError: Invalid options object. Dev Server has been initialized using an options object that does not match the API schema.
786
794
- options.static should be one of these:
@@ -789,14 +797,14 @@ exports[`options validate should throw an error on the "static" option with '{"w
789
797
-> Read more at https://webpack.js.org/configuration/dev-server/#devserverstatic
790
798
Details:
791
799
* options.static.watch should be one of these:
792
- boolean | object { … }
800
+ boolean | object { persistent?, ignored?, ignoreInitial?, followSymlinks?, cwd?, disableGlobbing?, usePolling?, interval?, binaryInterval?, alwaysStat?, depth?, awaitWriteFinish?, ignorePermissionErrors?, atomic? }
793
801
-> Watches for files in static content directory.
794
802
-> Read more at https://webpack.js.org/configuration/dev-server/#watch
795
803
Details:
796
804
* options.static.watch should be a boolean.
797
805
* options.static.watch should be an object:
798
- object { … }
799
- -> Options for watch .
806
+ object { persistent?, ignored?, ignoreInitial?, followSymlinks?, cwd?, disableGlobbing?, usePolling?, interval?, binaryInterval?, alwaysStat?, depth?, awaitWriteFinish?, ignorePermissionErrors?, atomic? }
807
+ -> Configure advanced options for watching. See the chokidar documentation for the possible options .
800
808
-> Read more at https://github.com/paulmillr/chokidar#api"
801
809
`;
802
810
@@ -830,10 +838,18 @@ exports[`options validate should throw an error on the "static" option with 'nul
830
838
object { directory?, staticOptions?, publicPath?, serveIndex?, watch? }"
831
839
`;
832
840
841
+ exports[`options validate should throw an error on the "watchFiles" option with '{"options":{"invalid":true}}' value 1`] = `
842
+ "ValidationError: Invalid options object. Dev Server has been initialized using an options object that does not match the API schema.
843
+ - options.watchFiles.options has an unknown property 'invalid'. These properties are valid:
844
+ object { persistent?, ignored?, ignoreInitial?, followSymlinks?, cwd?, disableGlobbing?, usePolling?, interval?, binaryInterval?, alwaysStat?, depth?, awaitWriteFinish?, ignorePermissionErrors?, atomic? }
845
+ -> Configure advanced options for watching. See the chokidar documentation for the possible options.
846
+ -> Read more at https://github.com/paulmillr/chokidar#api"
847
+ `;
848
+
833
849
exports[`options validate should throw an error on the "watchFiles" option with '{"options":false}' value 1`] = `
834
850
"ValidationError: Invalid options object. Dev Server has been initialized using an options object that does not match the API schema.
835
851
- options.watchFiles.options should be an object:
836
- object { … }
852
+ object { persistent?, ignored?, ignoreInitial?, followSymlinks?, cwd?, disableGlobbing?, usePolling?, interval?, binaryInterval?, alwaysStat?, depth?, awaitWriteFinish?, ignorePermissionErrors?, atomic? }
837
853
-> Configure advanced options for watching. See the chokidar documentation for the possible options.
838
854
-> Read more at https://github.com/paulmillr/chokidar#api"
839
855
`;
0 commit comments