Skip to content

Commit

Permalink
test: update snap
Browse files Browse the repository at this point in the history
  • Loading branch information
snitin315 committed May 23, 2021
1 parent b9f3bab commit d2acaba
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 12 deletions.
6 changes: 4 additions & 2 deletions bin/cli-flags.js
Original file line number Diff line number Diff line change
Expand Up @@ -750,11 +750,13 @@ module.exports = {
{
type: 'string',
multiple: false,
description: "The public hostname/ip address of the server that client script will try to connect to.",
description:
'The public hostname/ip address of the server that client script will try to connect to.',
path: 'public',
},
],
description: "The public hostname/ip address of the server that client script will try to connect to.",
description:
'The public hostname/ip address of the server that client script will try to connect to.',
simpleType: 'string',
multiple: false,
},
Expand Down
18 changes: 9 additions & 9 deletions test/cli/__snapshots__/cli.test.js.snap.webpack5
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ Options:
--no-compress Disable gzip compression.
--firewall [value...] Defines routes which are enabled by default, on by default and allows localhost.
--no-firewall Disable firewall.
--firewall-reset Clear all items provided in firewall.
--firewall-reset Clear all items provided in firewall configuration.
--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.
Expand All @@ -255,11 +255,11 @@ Options:
--no-open-target Do not open specified route in browser.
--open-app-name <value...> Open specified browser.
--open-app <value> Open specified browser.
--open-reset Clear all items provided in open.
--open-target-reset Clear all items provided in open.target
--open-app-name-reset Clear all items provided in open.app.name
--open-reset Clear all items provided in open configuration.
--open-target-reset Clear all items provided in open.target configuration.
--open-app-name-reset Clear all items provided in open.app.name configuration.
--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.
--public <value> The public hostname/ip address of the server that client script will try to connect to.
--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.
Expand All @@ -268,12 +268,12 @@ Options:
--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.
--static-reset Clear all items provided in static.
--static-public-path-reset Clear all items provided in static.publicPath
--static-reset Clear all items provided in static configuration.
--static-public-path-reset Clear all items provided in static.publicPath configuration.
--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.
--watch-files-reset Clear all items provided in watchFiles.
--watch-files-paths-reset Clear all items provided in watchFiles.paths
--watch-files-reset Clear all items provided in watchFiles configuration.
--watch-files-paths-reset Clear all items provided in watchFiles.paths configuration.

Global options:
--color Enable colors on console.
Expand Down
2 changes: 1 addition & 1 deletion test/helpers/test-bin.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const basicConfigPath = path.resolve(
function testBin(testArgs, configPath) {
const cwd = process.cwd();
const env = {
WEBPACK_CLI_HELP_WIDTH: 5000,
WEBPACK_CLI_HELP_WIDTH: 1024,
NODE_ENV: process.env.NODE_ENV,
};

Expand Down

0 comments on commit d2acaba

Please sign in to comment.