-
-
Notifications
You must be signed in to change notification settings - Fork 591
/
with-config-path.test.js.snap.webpack4
42 lines (31 loc) · 2.49 KB
/
with-config-path.test.js.snap.webpack4
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`'configtest' command with the configuration path option should throw error if configuration does not exist: stderr 1`] = `"[webpack-cli] Failed to load '<cwd>/test/configtest/with-config-path/a.js' config"`;
exports[`'configtest' command with the configuration path option should throw error if configuration does not exist: stdout 1`] = `""`;
exports[`'configtest' command with the configuration path option should throw syntax error: stderr 1`] = `
"[webpack-cli] Failed to load '<cwd>/test/configtest/with-config-path/syntax-error.config.js' config
[webpack-cli] <cwd>/test/configtest/with-config-path/syntax-error.config.js:5
target: 'node';
^
SyntaxError: <error-message>
at stack"
`;
exports[`'configtest' command with the configuration path option should throw syntax error: stdout 1`] = `""`;
exports[`'configtest' command with the configuration path option should throw validation error: stderr 1`] = `
"[webpack-cli] Invalid configuration object. Webpack has been initialised using a configuration object that does not match the API schema.
- configuration.mode should be one of these:
\\"development\\" | \\"production\\" | \\"none\\"
-> Enable production optimizations or development hints."
`;
exports[`'configtest' command with the configuration path option should throw validation error: stdout 1`] = `"[webpack-cli] Validate '<cwd>/test/configtest/with-config-path/error.config.js'."`;
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 initialised using a configuration object that does not match the API schema.
- configuration.mode should be one of these:
\\"development\\" | \\"production\\" | \\"none\\"
-> Enable production optimizations or development hints."
`;
exports[`'configtest' command with the configuration path option should validate the config with alias 't': stdout 1`] = `"[webpack-cli] Validate '<cwd>/test/configtest/with-config-path/error.config.js'."`;
exports[`'configtest' command with the configuration path option should validate webpack config successfully: stderr 1`] = `""`;
exports[`'configtest' command with the configuration path option should validate webpack config successfully: stdout 1`] = `
"[webpack-cli] Validate '<cwd>/test/configtest/with-config-path/basic.config.js'.
[webpack-cli] There are no validation errors in the given webpack configuration."
`;