@@ -781,6 +781,14 @@ exports[`options validate should throw an error on the "static" option with '{"s
781781 object { … }"
782782`;
783783
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+
784792exports[`options validate should throw an error on the "static" option with '{"watch":10}' value 1`] = `
785793"ValidationError: Invalid options object. Dev Server has been initialized using an options object that does not match the API schema.
786794 - options.static should be one of these:
@@ -789,14 +797,14 @@ exports[`options validate should throw an error on the "static" option with '{"w
789797 -> Read more at https://webpack.js.org/configuration/dev-server/#devserverstatic
790798 Details:
791799 * 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? }
793801 -> Watches for files in static content directory.
794802 -> Read more at https://webpack.js.org/configuration/dev-server/#watch
795803 Details:
796804 * options.static.watch should be a boolean.
797805 * 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 .
800808 -> Read more at https://github.com/paulmillr/chokidar#api"
801809`;
802810
@@ -830,10 +838,18 @@ exports[`options validate should throw an error on the "static" option with 'nul
830838 object { directory?, staticOptions?, publicPath?, serveIndex?, watch? }"
831839`;
832840
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+
833849exports[`options validate should throw an error on the "watchFiles" option with '{"options":false}' value 1`] = `
834850"ValidationError: Invalid options object. Dev Server has been initialized using an options object that does not match the API schema.
835851 - 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? }
837853 -> Configure advanced options for watching. See the chokidar documentation for the possible options.
838854 -> Read more at https://github.com/paulmillr/chokidar#api"
839855`;
0 commit comments