Skip to content

Commit

Permalink
chore: update jest to v29 (#3413)
Browse files Browse the repository at this point in the history
  • Loading branch information
snitin315 committed Sep 19, 2022
1 parent 8581a4b commit 8aa841c
Show file tree
Hide file tree
Showing 8 changed files with 626 additions and 715 deletions.
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
"devDependencies": {
"@commitlint/cli": "^16.2.4",
"@commitlint/config-conventional": "^16.2.4",
"@types/jest": "^28.1.3",
"@types/jest": "^29.0.3",
"@types/node": "^17.0.31",
"@types/rechoir": "^0.6.1",
"@typescript-eslint/eslint-plugin": "^5.22.0",
Expand All @@ -74,7 +74,7 @@
"get-port": "^5.1.1",
"husky": "^7.0.4",
"internal-ip": "^6.2.0",
"jest": "^28.1.3",
"jest": "^29.0.3",
"jest-watch-typeahead": "^2.2.0",
"lerna": "^4.0.0",
"lint-staged": "^12.4.1",
Expand All @@ -87,7 +87,7 @@
"sass-loader": "^13.0.2",
"strip-ansi": "^6.0.1",
"style-loader": "^3.3.1",
"ts-jest": "^29.0.0",
"ts-jest": "^29.0.1",
"ts-loader": "^9.3.1",
"ts-node": "^10.8.0",
"typescript": "^4.7.2",
Expand Down
20 changes: 10 additions & 10 deletions test/api/__snapshots__/CLI.test.js.snap.webpack5
Original file line number Diff line number Diff line change
@@ -1,30 +1,30 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`CLI API custom help output should display help information 1`] = `
Array [
Array [
[
[
"Usage: webpack --color [value]",
],
Array [
[
"Description: any color",
],
Array [
"Default value: \\"blue\\"",
[
"Default value: "blue"",
],
Array [
[
"",
],
Array [
[
"To see list of all supported commands and options run 'webpack --help=verbose'.
",
],
Array [
[
"Webpack documentation: https://webpack.js.org/.",
],
Array [
[
"CLI documentation: https://webpack.js.org/api/cli/.",
],
Array [
[
"Made with ♥ by the webpack team.",
],
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ exports[`'configtest' command with the configuration path option should throw sy
exports[`'configtest' command with the configuration path option should throw validation error: stderr 1`] = `
"[webpack-cli] Invalid configuration object. Webpack has been initialized using a configuration object that does not match the API schema.
- configuration.mode should be one of these:
\\"development\\" | \\"production\\" | \\"none\\"
"development" | "production" | "none"
-> Enable production optimizations or development hints."
`;

Expand All @@ -28,7 +28,7 @@ exports[`'configtest' command with the configuration path option should throw va
exports[`'configtest' command with the configuration path option should validate the config with alias 't': stderr 1`] = `
"[webpack-cli] Invalid configuration object. Webpack has been initialized using a configuration object that does not match the API schema.
- configuration.mode should be one of these:
\\"development\\" | \\"production\\" | \\"none\\"
"development" | "production" | "none"
-> Enable production optimizations or development hints."
`;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
exports[`'configtest' command without the configuration path option should validate default configuration: stderr 1`] = `
"[webpack-cli] Invalid configuration object. Webpack has been initialized using a configuration object that does not match the API schema.
- configuration.mode should be one of these:
\\"development\\" | \\"production\\" | \\"none\\"
"development" | "production" | "none"
-> Enable production optimizations or development hints."
`;

Expand Down
58 changes: 29 additions & 29 deletions test/help/__snapshots__/help.test.js.snap.devServer4.webpack5
Original file line number Diff line number Diff line change
Expand Up @@ -579,7 +579,7 @@ Arguments:
generation-path Path to the installation directory, e.g. ./projectName

Options:
-t, --template <value> Type of template (default: \\"default\\")
-t, --template <value> Type of template (default: "default")
-f, --force Generate without questions (ideally) using default answers

Global options:
Expand All @@ -606,7 +606,7 @@ Arguments:
generation-path Path to the installation directory, e.g. ./projectName

Options:
-t, --template <value> Type of template (default: \\"default\\")
-t, --template <value> Type of template (default: "default")
-f, --force Generate without questions (ideally) using default answers

Global options:
Expand Down Expand Up @@ -715,7 +715,7 @@ Arguments:
generation-path Path to the installation directory, e.g. ./projectName

Options:
-t, --template <value> Type of template (default: \\"default\\")
-t, --template <value> Type of template (default: "default")
-f, --force Generate without questions (ideally) using default answers

Global options:
Expand All @@ -742,7 +742,7 @@ Arguments:
generation-path Path to the installation directory, e.g. ./projectName

Options:
-t, --template <value> Type of template (default: \\"default\\")
-t, --template <value> Type of template (default: "default")
-f, --force Generate without questions (ideally) using default answers

Global options:
Expand Down Expand Up @@ -920,7 +920,7 @@ Arguments:
./projectName

Options:
-t, --template <value> Type of template (default: \\"default\\")
-t, --template <value> Type of template (default: "default")
-f, --force Generate without questions (ideally) using default
answers

Expand Down Expand Up @@ -950,7 +950,7 @@ Arguments:
./projectName

Options:
-t, --template <value> Type of template (default: \\"default\\")
-t, --template <value> Type of template (default: "default")
-f, --force Generate without questions (ideally) using default
answers

Expand Down Expand Up @@ -979,7 +979,7 @@ Arguments:
generation-path Path to the installation directory, e.g. ./projectName

Options:
-t, --template <value> Type of template (default: \\"default\\")
-t, --template <value> Type of template (default: "default")
-f, --force Generate without questions (ideally) using default answers

Global options:
Expand All @@ -1006,7 +1006,7 @@ Arguments:
generation-path Path to the installation directory, e.g. ./projectName

Options:
-t, --template <value> Type of template (default: \\"default\\")
-t, --template <value> Type of template (default: "default")
-f, --force Generate without questions (ideally) using default answers

Global options:
Expand All @@ -1033,7 +1033,7 @@ Arguments:
output-path Path to the output directory, e.g. ./loaderName

Options:
-t, --template <value> Type of template (default: \\"default\\")
-t, --template <value> Type of template (default: "default")

Global options:
--color Enable colors on console.
Expand All @@ -1059,7 +1059,7 @@ Arguments:
output-path Path to the output directory, e.g. ./loaderName

Options:
-t, --template <value> Type of template (default: \\"default\\")
-t, --template <value> Type of template (default: "default")

Global options:
--color Enable colors on console.
Expand All @@ -1085,7 +1085,7 @@ Arguments:
output-path Path to the output directory, e.g. ./loaderName

Options:
-t, --template <value> Type of template (default: \\"default\\")
-t, --template <value> Type of template (default: "default")

Global options:
--color Enable colors on console.
Expand All @@ -1112,7 +1112,7 @@ Arguments:
output-path Path to the output directory, e.g. ./loaderName

Options:
-t, --template <value> Type of template (default: \\"default\\")
-t, --template <value> Type of template (default: "default")

Global options:
--color Enable colors on console.
Expand All @@ -1139,7 +1139,7 @@ Arguments:
output-path Path to the output directory, e.g. ./loaderName

Options:
-t, --template <value> Type of template (default: \\"default\\")
-t, --template <value> Type of template (default: "default")

Global options:
--color Enable colors on console.
Expand All @@ -1165,7 +1165,7 @@ Arguments:
output-path Path to the output directory, e.g. ./loaderName

Options:
-t, --template <value> Type of template (default: \\"default\\")
-t, --template <value> Type of template (default: "default")

Global options:
--color Enable colors on console.
Expand All @@ -1191,7 +1191,7 @@ Arguments:
generation-path Path to the installation directory, e.g. ./projectName

Options:
-t, --template <value> Type of template (default: \\"default\\")
-t, --template <value> Type of template (default: "default")
-f, --force Generate without questions (ideally) using default answers

Global options:
Expand All @@ -1218,7 +1218,7 @@ Arguments:
generation-path Path to the installation directory, e.g. ./projectName

Options:
-t, --template <value> Type of template (default: \\"default\\")
-t, --template <value> Type of template (default: "default")
-f, --force Generate without questions (ideally) using default answers

Global options:
Expand All @@ -1245,7 +1245,7 @@ Arguments:
generation-path Path to the installation directory, e.g. ./projectName

Options:
-t, --template <value> Type of template (default: \\"default\\")
-t, --template <value> Type of template (default: "default")
-f, --force Generate without questions (ideally) using default answers

Global options:
Expand All @@ -1272,7 +1272,7 @@ Arguments:
generation-path Path to the installation directory, e.g. ./projectName

Options:
-t, --template <value> Type of template (default: \\"default\\")
-t, --template <value> Type of template (default: "default")
-f, --force Generate without questions (ideally) using default answers

Global options:
Expand All @@ -1299,7 +1299,7 @@ Arguments:
output-path Path to the output directory, e.g. ./pluginName

Options:
-t, --template <value> Type of template (default: \\"default\\")
-t, --template <value> Type of template (default: "default")

Global options:
--color Enable colors on console.
Expand All @@ -1325,7 +1325,7 @@ Arguments:
output-path Path to the output directory, e.g. ./pluginName

Options:
-t, --template <value> Type of template (default: \\"default\\")
-t, --template <value> Type of template (default: "default")

Global options:
--color Enable colors on console.
Expand All @@ -1351,7 +1351,7 @@ Arguments:
output-path Path to the output directory, e.g. ./pluginName

Options:
-t, --template <value> Type of template (default: \\"default\\")
-t, --template <value> Type of template (default: "default")

Global options:
--color Enable colors on console.
Expand All @@ -1378,7 +1378,7 @@ Arguments:
output-path Path to the output directory, e.g. ./pluginName

Options:
-t, --template <value> Type of template (default: \\"default\\")
-t, --template <value> Type of template (default: "default")

Global options:
--color Enable colors on console.
Expand All @@ -1405,7 +1405,7 @@ Arguments:
output-path Path to the output directory, e.g. ./pluginName

Options:
-t, --template <value> Type of template (default: \\"default\\")
-t, --template <value> Type of template (default: "default")

Global options:
--color Enable colors on console.
Expand All @@ -1431,7 +1431,7 @@ Arguments:
output-path Path to the output directory, e.g. ./pluginName

Options:
-t, --template <value> Type of template (default: \\"default\\")
-t, --template <value> Type of template (default: "default")

Global options:
--color Enable colors on console.
Expand Down Expand Up @@ -1919,7 +1919,7 @@ exports[`help should show help information using the "help --cache-type" option:
exports[`help should show help information using the "help --cache-type" option: stdout 1`] = `
"Usage: webpack --cache-type <value>
Description: In memory caching. Filesystem caching.
Possible values: \\"memory | filesystem\\"
Possible values: "memory | filesystem"

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

Expand All @@ -1946,7 +1946,7 @@ exports[`help should show help information using the "help --mode" option: stder
exports[`help should show help information using the "help --mode" option: stdout 1`] = `
"Usage: webpack --mode <value>
Description: Enable production optimizations or development hints.
Possible values: \\"development | production | none\\"
Possible values: "development | production | none"

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

Expand Down Expand Up @@ -1986,7 +1986,7 @@ exports[`help should show help information using the "help --stats" option: stde
exports[`help should show help information using the "help --stats" option: stdout 1`] = `
"Usage: webpack --stats [value]
Description: Stats options object or preset name.
Possible values: \\"none | summary | errors-only | errors-warnings | minimal | normal | detailed | verbose\\"
Possible values: "none | summary | errors-only | errors-warnings | minimal | normal | detailed | verbose"

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

Expand All @@ -2001,7 +2001,7 @@ exports[`help should show help information using the "help --target" option: std
"Usage: webpack --target <value...>
Short: webpack -t <value...>
Description: Environment to build for. Environment to build for. An array of environments to build for all of them when possible.
Possible values: \\"false\\"
Possible values: "false"

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

Expand Down Expand Up @@ -2056,7 +2056,7 @@ exports[`help should show help information using the "help serve --mode" option:
exports[`help should show help information using the "help serve --mode" option: stdout 1`] = `
"Usage: webpack serve --mode <value>
Description: Enable production optimizations or development hints.
Possible values: \\"development | production | none\\"
Possible values: "development | production | none"

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

Expand Down

0 comments on commit 8aa841c

Please sign in to comment.