@@ -789,6 +789,30 @@ exports[`options validate should throw an error on the "static" option with 'nul
789789 object { directory?, staticOptions?, publicPath?, serveIndex?, watch? }"
790790`;
791791
792+ exports[`options validate should throw an error on the "watchFiles" option with '{"options":false}' value 1`] = `
793+ "ValidationError: Invalid options object. Dev Server has been initialized using an options object that does not match the API schema.
794+ - options.watchFiles.options should be an object:
795+ object { … }
796+ -> Configure advanced options for watching. See the chokidar documentation for the possible options.
797+ -> Read more at https://github.com/paulmillr/chokidar#api"
798+ `;
799+
800+ exports[`options validate should throw an error on the "watchFiles" option with '{"paths":false}' value 1`] = `
801+ "ValidationError: Invalid options object. Dev Server has been initialized using an options object that does not match the API schema.
802+ - options.watchFiles should be one of these:
803+ [non-empty string | object { paths?, options? }, ...] | non-empty string | object { paths?, options? }
804+ -> Allows to configure list of globs/directories/files to watch for file changes.
805+ -> Read more at https://webpack.js.org/configuration/dev-server/#devserverwatchfiles
806+ Details:
807+ * options.watchFiles.paths should be one of these:
808+ [non-empty string, ...] | non-empty string
809+ -> Path(s) of globs/directories/files to watch for file changes.
810+ Details:
811+ * options.watchFiles.paths should be an array:
812+ [non-empty string, ...]
813+ * options.watchFiles.paths should be a non-empty string."
814+ `;
815+
792816exports[`options validate should throw an error on the "watchFiles" option with '123' value 1`] = `
793817"ValidationError: Invalid options object. Dev Server has been initialized using an options object that does not match the API schema.
794818 - options.watchFiles should be one of these:
0 commit comments