Skip to content

Commit

Permalink
test: update snapshot
Browse files Browse the repository at this point in the history
  • Loading branch information
snitin315 committed May 22, 2021
1 parent fdf550b commit 4f42ce2
Showing 1 changed file with 59 additions and 87 deletions.
146 changes: 59 additions & 87 deletions test/cli/__snapshots__/cli.test.js.snap.webpack5
Original file line number Diff line number Diff line change
Expand Up @@ -186,95 +186,58 @@ exports[`CLI should generate correct cli flags 1`] = `
Run the webpack dev server.

Options:
-c, --config <value...> Provide path to a webpack configuration
file e.g. ./webpack.config.js.
-c, --config <value...> Provide path to a webpack configuration file e.g. ./webpack.config.js.
--config-name <value...> Name of the configuration to use.
-m, --merge Merge two or more configurations using
'webpack-merge'.
--env <value...> Environment passed to the configuration
when it is a function.
--node-env <value> Sets process.env.NODE_ENV to the specified
value.
-m, --merge Merge two or more configurations using 'webpack-merge'.
--env <value...> Environment passed to the configuration when it is a function.
--node-env <value> Sets process.env.NODE_ENV to the specified value.
--progress [value] Print compilation progress during build.
-j, --json [value] Prints result as JSON or store it in a
file.
-j, --json [value] Prints result as JSON or store it in a file.
-d, --devtool <value> Determine source maps to use.
--no-devtool Do not generate source maps.
--entry <value...> The entry point(s) of your application e.g.
./src/main.js.
--entry <value...> The entry point(s) of your application e.g. ./src/main.js.
--mode <value> Defines the mode to pass to webpack.
--name <value> Name of the configuration. Used when
loading multiple configurations.
-o, --output-path <value> Output location of the file generated by
webpack e.g. ./dist/.
--stats [value] It instructs webpack on how to treat the
stats e.g. verbose.
--name <value> Name of the configuration. Used when loading multiple configurations.
-o, --output-path <value> Output location of the file generated by webpack e.g. ./dist/.
--stats [value] It instructs webpack on how to treat the stats e.g. verbose.
--no-stats Disable stats output.
-t, --target <value...> Sets the build target e.g. node.
--no-target Negative 'target' option.
--watch-options-stdin Stop watching when stdin stream has ended.
--no-watch-options-stdin Do not stop watching when stdin stream has
ended.
--bonjour Broadcasts the server via ZeroConf
networking on start.
--no-bonjour Do not broadcast the server via ZeroConf
networking on start.
--client-transport <value> Allows to set custom transport to
communicate with server.
--client-host <value> Tells clients connected to devServer to use
the provided host.
--client-path <value> Tells clients connected to devServer to use
the provided path to connect.
--client-port <value> Tells clients connected to devServer to use
the provided port.
--no-watch-options-stdin Do not stop watching when stdin stream has ended.
--bonjour Broadcasts the server via ZeroConf networking on start.
--no-bonjour Do not broadcast the server via ZeroConf networking on start.
--client-transport <value> Allows to set custom transport to communicate with server.
--client-host <value> Tells clients connected to devServer to use the provided host.
--client-path <value> Tells clients connected to devServer to use the provided path to connect.
--client-port <value> Tells clients connected to devServer to use the provided port.
--client-logging <value> Specifies client properties.
--client-progress Print compilation progress in percentage in
the browser.
--no-client-progress Do not print compilation progress in
percentage in the browser.
--client-overlay Show a full-screen overlay in the browser
when there are compiler errors or warnings.
--no-client-overlay Do not show a full-screen overlay in the
browser when there are compiler errors or
warnings.
--client-overlay-errors Show a full-screen overlay in the browser
when there are compiler errors.
--client-progress Print compilation progress in percentage in the browser.
--no-client-progress Do not print compilation progress in percentage in the browser.
--client-overlay Show a full-screen overlay in the browser when there are compiler errors or warnings.
--no-client-overlay Do not show a full-screen overlay in the browser when there are compiler errors or warnings.
--client-overlay-errors Show a full-screen overlay in the browser when there are compiler errors.
--no-client-overlay-errors Negative 'client-overlay-errors' option.
--client-overlay-warnings Show a full-screen overlay in the browser
when there are compiler warnings.
--client-overlay-warnings Show a full-screen overlay in the browser when there are compiler warnings.
--no-client-overlay-warnings Negative 'client-overlay-warnings' option.
--client-need-client-entry Tells devServer to inject a client entry.
--no-client-need-client-entry Negative 'client-need-client-entry' option.
--client-hot-entry Tells devServer to inject a Hot Module
Replacement entry.
--no-client-hot-entry Do not tell devServer to inject a Hot
Module Replacement entry.
--web-socket-server <value> Allows to set web socket server and
options.
--web-socket-server-type <value> Allows to set web socket server and
options.
--compress Enable gzip compression for everything
served.
--client-hot-entry Tells devServer to inject a Hot Module Replacement entry.
--no-client-hot-entry Do not tell devServer to inject a Hot Module Replacement entry.
--web-socket-server <value> Allows to set web socket server and options.
--web-socket-server-type <value> Allows to set web socket server and options.
--compress Enable gzip compression for everything served.
--no-compress Disable gzip compression.
--firewall [value...] Defines routes which are enabled by
default, on by default and allows
localhost.
--firewall [value...] Defines routes which are enabled by default, on by default and allows localhost.
--no-firewall Disable firewall.
--history-api-fallback When using the HTML5 History API, the
index.html page will likely have to be
served in place of any 404 responses.
--history-api-fallback When using the HTML5 History API, the index.html page will likely have to be served in place of any 404 responses.
--no-history-api-fallback Negative 'history-api-fallback' option.
--host <value> Specify a host to use. If you want your
server to be accessible externally.
--hot [value] Enable webpack's Hot Module Replacement
feature.
--no-hot Disable webpack's Hot Module Replacement
feature.
--host <value> Specify a host to use. If you want your server to be accessible externally.
--hot [value] Enable webpack's Hot Module Replacement feature.
--no-hot Disable webpack's Hot Module Replacement feature.
--http2 Serve over HTTP/2 using spdy.
--no-http2 Do not use HTTP/2.
--https By default, dev-server will be served over
HTTP. It can optionally be served over
HTTP/2 with HTTPS.
--https By default, dev-server will be served over HTTP. It can optionally be served over HTTP/2 with HTTPS.
--no-https Do not use HTTPS protocol.
--https-passphrase <value> Passphrase for a pfx file.
--https-request-cert Request for an SSL certificate.
Expand All @@ -283,27 +246,36 @@ Options:
--https-key <value> Path to an SSL key.
--https-pfx <value> Path to an SSL pfx file.
--https-cert <value> Path to an SSL certificate.
--live-reload By default, the dev-server will
reload/refresh the page when file changes
are detected.
--live-reload By default, the dev-server will reload/refresh the page when file changes are detected.
--no-live-reload Disables live reloading on changing files.
--open [value...] Tells dev-server to open the browser after
server had been started. Set it to true to
open your default browser.
--open [value...] Tells dev-server to open the browser after server had been started. Set it to true to open your default browser.
--no-open Do not open the default browser.
--open-target [value...] Open specified route in browser.
--no-open-target Do not open specified route in browser.
--open-app-name <value...> Open specified browser.
--open-app <value> Open specified browser.
--port <value> Specify a port number to listen for
requests on.
--public <value> When using dev server and you're proxying
dev-server, the client script does not
always know where to connect to. It will
try to guess the URL of the server based on
window.location, but if that fails you'll
need to use this.
--static [value...] It is possible to configure advanced
options for serving static files from
directory. See the Express doc"
--port <value> Specify a port number to listen for requests on.
--public <value> When using dev server and you're proxying dev-server, the client script does not always know where to connect to. It will try to guess the URL of the server based on window.location, but if that fails you'll need to use this.
--static [value...] It is possible to configure advanced options for serving static files from directory. See the Express documentation for the possible options.
--no-static Negative 'static' option.
--static-directory <value> Directory for static contents.
--static-public-path <value...> The bundled files will be available in the browser under this path.
--static-serve-index Tells dev-server to use serveIndex middleware when enabled.
--no-static-serve-index Do not tell dev-server to use serveIndex middleware.
--static-watch Watch for files in static content directory.
--no-static-watch Do not watch for files in static content directory.
--watch-files <value...> List of files to watch for file changes and serve.
--watch-files-paths <value...> List of files to watch for file changes and serve.

Global options:
--color Enable colors on console.
--no-color Disable colors on console.
-v, --version Output the version number of 'webpack', 'webpack-cli' and 'webpack-dev-server' and commands.
-h, --help [verbose] Display help for commands and options.

To see list of all supported commands and options run 'webpack --help=verbose'.

Webpack documentation: https://webpack.js.org/.
CLI documentation: https://webpack.js.org/api/cli/.
Made with ♥ by the webpack team."
`;

0 comments on commit 4f42ce2

Please sign in to comment.