|
1 | 1 | // Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing |
2 | 2 |
|
3 | 3 | exports[`unknown behaviour should log an error if an unknown flag is passed #2: stderr 1`] = ` |
4 | | -"[webpack-cli] Error: Unknown option '-u' |
5 | | -[webpack-cli] Run 'webpack --help' to see available commands and options" |
| 4 | +"[webpack-cli] ✖ Error: Unknown option '-u' |
| 5 | +[webpack-cli] ✖ Run 'webpack --help' to see available commands and options" |
6 | 6 | `; |
7 | 7 |
|
8 | 8 | exports[`unknown behaviour should log an error if an unknown flag is passed #2: stdout 1`] = `""`; |
9 | 9 |
|
10 | 10 | exports[`unknown behaviour should log an error if an unknown flag is passed #3: stderr 1`] = ` |
11 | | -"[webpack-cli] Error: Unknown option '-u' |
12 | | -[webpack-cli] Run 'webpack --help' to see available commands and options" |
| 11 | +"[webpack-cli] ✖ Error: Unknown option '-u' |
| 12 | +[webpack-cli] ✖ Run 'webpack --help' to see available commands and options" |
13 | 13 | `; |
14 | 14 |
|
15 | 15 | exports[`unknown behaviour should log an error if an unknown flag is passed #3: stdout 1`] = `""`; |
16 | 16 |
|
17 | 17 | exports[`unknown behaviour should log an error if an unknown flag is passed #4: stderr 1`] = ` |
18 | | -"[webpack-cli] Error: Unknown option '-u' |
19 | | -[webpack-cli] Run 'webpack --help' to see available commands and options" |
| 18 | +"[webpack-cli] ✖ Error: Unknown option '-u' |
| 19 | +[webpack-cli] ✖ Run 'webpack --help' to see available commands and options" |
20 | 20 | `; |
21 | 21 |
|
22 | 22 | exports[`unknown behaviour should log an error if an unknown flag is passed #4: stdout 1`] = `""`; |
23 | 23 |
|
24 | 24 | exports[`unknown behaviour should log an error if an unknown flag is passed #5: stderr 1`] = ` |
25 | | -"[webpack-cli] Error: Unknown option '-u' |
26 | | -[webpack-cli] Run 'webpack --help' to see available commands and options" |
| 25 | +"[webpack-cli] ✖ Error: Unknown option '-u' |
| 26 | +[webpack-cli] ✖ Run 'webpack --help' to see available commands and options" |
27 | 27 | `; |
28 | 28 |
|
29 | 29 | exports[`unknown behaviour should log an error if an unknown flag is passed #5: stdout 1`] = `""`; |
30 | 30 |
|
31 | 31 | exports[`unknown behaviour should log an error if an unknown flag is passed and includes =: stderr 1`] = ` |
32 | | -"[webpack-cli] Error: Unknown option '--unknown=foo' |
33 | | -[webpack-cli] Run 'webpack --help' to see available commands and options" |
| 32 | +"[webpack-cli] ✖ Error: Unknown option '--unknown=foo' |
| 33 | +[webpack-cli] ✖ Run 'webpack --help' to see available commands and options" |
34 | 34 | `; |
35 | 35 |
|
36 | 36 | exports[`unknown behaviour should log an error if an unknown flag is passed and includes =: stdout 1`] = `""`; |
37 | 37 |
|
38 | 38 | exports[`unknown behaviour should log an error if an unknown flag is passed and suggests the closest match to an unknown flag #2: stderr 1`] = ` |
39 | | -"[webpack-cli] Error: Unknown option '--output-fileneme' |
40 | | -[webpack-cli] Did you mean '--output-filename'? |
41 | | -[webpack-cli] Run 'webpack --help' to see available commands and options" |
| 39 | +"[webpack-cli] ✖ Error: Unknown option '--output-fileneme' |
| 40 | +[webpack-cli] ✖ Did you mean '--output-filename'? |
| 41 | +[webpack-cli] ✖ Run 'webpack --help' to see available commands and options" |
42 | 42 | `; |
43 | 43 |
|
44 | 44 | exports[`unknown behaviour should log an error if an unknown flag is passed and suggests the closest match to an unknown flag #2: stdout 1`] = `""`; |
45 | 45 |
|
46 | 46 | exports[`unknown behaviour should log an error if an unknown flag is passed and suggests the closest match to an unknown flag #3: stderr 1`] = ` |
47 | | -"[webpack-cli] Error: Unknown option '--output-library-auxiliary-comment-commnjs' |
48 | | -[webpack-cli] Did you mean '--output-library-auxiliary-comment-commonjs'? |
49 | | -[webpack-cli] Did you mean '--output-library-auxiliary-comment-commonjs2'? |
50 | | -[webpack-cli] Run 'webpack --help' to see available commands and options" |
| 47 | +"[webpack-cli] ✖ Error: Unknown option '--output-library-auxiliary-comment-commnjs' |
| 48 | +[webpack-cli] ✖ Did you mean '--output-library-auxiliary-comment-commonjs'? |
| 49 | +[webpack-cli] ✖ Did you mean '--output-library-auxiliary-comment-commonjs2'? |
| 50 | +[webpack-cli] ✖ Run 'webpack --help' to see available commands and options" |
51 | 51 | `; |
52 | 52 |
|
53 | 53 | exports[`unknown behaviour should log an error if an unknown flag is passed and suggests the closest match to an unknown flag #3: stdout 1`] = `""`; |
54 | 54 |
|
55 | 55 | exports[`unknown behaviour should log an error if an unknown flag is passed and suggests the closest match to an unknown flag using "b" command: stderr 1`] = ` |
56 | | -"[webpack-cli] Error: Unknown option '--entyr' |
57 | | -[webpack-cli] Did you mean '--entry'? |
58 | | -[webpack-cli] Run 'webpack --help' to see available commands and options" |
| 56 | +"[webpack-cli] ✖ Error: Unknown option '--entyr' |
| 57 | +[webpack-cli] ✖ Did you mean '--entry'? |
| 58 | +[webpack-cli] ✖ Run 'webpack --help' to see available commands and options" |
59 | 59 | `; |
60 | 60 |
|
61 | 61 | exports[`unknown behaviour should log an error if an unknown flag is passed and suggests the closest match to an unknown flag using "b" command: stdout 1`] = `""`; |
62 | 62 |
|
63 | 63 | exports[`unknown behaviour should log an error if an unknown flag is passed and suggests the closest match to an unknown flag using "bundle" command: stderr 1`] = ` |
64 | | -"[webpack-cli] Error: Unknown option '--entyr' |
65 | | -[webpack-cli] Did you mean '--entry'? |
66 | | -[webpack-cli] Run 'webpack --help' to see available commands and options" |
| 64 | +"[webpack-cli] ✖ Error: Unknown option '--entyr' |
| 65 | +[webpack-cli] ✖ Did you mean '--entry'? |
| 66 | +[webpack-cli] ✖ Run 'webpack --help' to see available commands and options" |
67 | 67 | `; |
68 | 68 |
|
69 | 69 | exports[`unknown behaviour should log an error if an unknown flag is passed and suggests the closest match to an unknown flag using "bundle" command: stdout 1`] = `""`; |
70 | 70 |
|
71 | 71 | exports[`unknown behaviour should log an error if an unknown flag is passed and suggests the closest match to an unknown flag using "i" command: stderr 1`] = ` |
72 | | -"[webpack-cli] Error: Unknown option '--outpyt' |
73 | | -[webpack-cli] Did you mean '--output'? |
74 | | -[webpack-cli] Run 'webpack --help' to see available commands and options" |
| 72 | +"[webpack-cli] ✖ Error: Unknown option '--outpyt' |
| 73 | +[webpack-cli] ✖ Did you mean '--output'? |
| 74 | +[webpack-cli] ✖ Run 'webpack --help' to see available commands and options" |
75 | 75 | `; |
76 | 76 |
|
77 | 77 | exports[`unknown behaviour should log an error if an unknown flag is passed and suggests the closest match to an unknown flag using "i" command: stdout 1`] = `""`; |
78 | 78 |
|
79 | 79 | exports[`unknown behaviour should log an error if an unknown flag is passed and suggests the closest match to an unknown flag using "info" command: stderr 1`] = ` |
80 | | -"[webpack-cli] Error: Unknown option '--outpyt' |
81 | | -[webpack-cli] Did you mean '--output'? |
82 | | -[webpack-cli] Run 'webpack --help' to see available commands and options" |
| 80 | +"[webpack-cli] ✖ Error: Unknown option '--outpyt' |
| 81 | +[webpack-cli] ✖ Did you mean '--output'? |
| 82 | +[webpack-cli] ✖ Run 'webpack --help' to see available commands and options" |
83 | 83 | `; |
84 | 84 |
|
85 | 85 | exports[`unknown behaviour should log an error if an unknown flag is passed and suggests the closest match to an unknown flag using "info" command: stdout 1`] = `""`; |
86 | 86 |
|
87 | 87 | exports[`unknown behaviour should log an error if an unknown flag is passed and suggests the closest match to an unknown flag: stderr 1`] = ` |
88 | | -"[webpack-cli] Error: Unknown option '--entyr' |
89 | | -[webpack-cli] Did you mean '--entry'? |
90 | | -[webpack-cli] Run 'webpack --help' to see available commands and options" |
| 88 | +"[webpack-cli] ✖ Error: Unknown option '--entyr' |
| 89 | +[webpack-cli] ✖ Did you mean '--entry'? |
| 90 | +[webpack-cli] ✖ Run 'webpack --help' to see available commands and options" |
91 | 91 | `; |
92 | 92 |
|
93 | 93 | exports[`unknown behaviour should log an error if an unknown flag is passed and suggests the closest match to an unknown flag: stdout 1`] = `""`; |
94 | 94 |
|
95 | 95 | exports[`unknown behaviour should log an error if an unknown flag is passed using "b" command: stderr 1`] = ` |
96 | | -"[webpack-cli] Error: Unknown option '--unknown' |
97 | | -[webpack-cli] Run 'webpack --help' to see available commands and options" |
| 96 | +"[webpack-cli] ✖ Error: Unknown option '--unknown' |
| 97 | +[webpack-cli] ✖ Run 'webpack --help' to see available commands and options" |
98 | 98 | `; |
99 | 99 |
|
100 | 100 | exports[`unknown behaviour should log an error if an unknown flag is passed using "b" command: stdout 1`] = `""`; |
101 | 101 |
|
102 | 102 | exports[`unknown behaviour should log an error if an unknown flag is passed using "bundle" command #2: stderr 1`] = ` |
103 | | -"[webpack-cli] Error: Unknown option '--unknown' |
104 | | -[webpack-cli] Run 'webpack --help' to see available commands and options" |
| 103 | +"[webpack-cli] ✖ Error: Unknown option '--unknown' |
| 104 | +[webpack-cli] ✖ Run 'webpack --help' to see available commands and options" |
105 | 105 | `; |
106 | 106 |
|
107 | 107 | exports[`unknown behaviour should log an error if an unknown flag is passed using "bundle" command #2: stdout 1`] = `""`; |
108 | 108 |
|
109 | 109 | exports[`unknown behaviour should log an error if an unknown flag is passed using "bundle" command: stderr 1`] = ` |
110 | | -"[webpack-cli] Error: Unknown option '--unknown' |
111 | | -[webpack-cli] Run 'webpack --help' to see available commands and options" |
| 110 | +"[webpack-cli] ✖ Error: Unknown option '--unknown' |
| 111 | +[webpack-cli] ✖ Run 'webpack --help' to see available commands and options" |
112 | 112 | `; |
113 | 113 |
|
114 | 114 | exports[`unknown behaviour should log an error if an unknown flag is passed using "bundle" command: stdout 1`] = `""`; |
115 | 115 |
|
116 | 116 | exports[`unknown behaviour should log an error if an unknown flag is passed using "i" command: stderr 1`] = ` |
117 | | -"[webpack-cli] Error: Unknown option '--unknown' |
118 | | -[webpack-cli] Run 'webpack --help' to see available commands and options" |
| 117 | +"[webpack-cli] ✖ Error: Unknown option '--unknown' |
| 118 | +[webpack-cli] ✖ Run 'webpack --help' to see available commands and options" |
119 | 119 | `; |
120 | 120 |
|
121 | 121 | exports[`unknown behaviour should log an error if an unknown flag is passed using "i" command: stdout 1`] = `""`; |
122 | 122 |
|
123 | 123 | exports[`unknown behaviour should log an error if an unknown flag is passed using "info" command: stderr 1`] = ` |
124 | | -"[webpack-cli] Error: Unknown option '--unknown' |
125 | | -[webpack-cli] Run 'webpack --help' to see available commands and options" |
| 124 | +"[webpack-cli] ✖ Error: Unknown option '--unknown' |
| 125 | +[webpack-cli] ✖ Run 'webpack --help' to see available commands and options" |
126 | 126 | `; |
127 | 127 |
|
128 | 128 | exports[`unknown behaviour should log an error if an unknown flag is passed using "info" command: stdout 1`] = `""`; |
129 | 129 |
|
130 | 130 | exports[`unknown behaviour should log an error if an unknown flag is passed: stderr 1`] = ` |
131 | | -"[webpack-cli] Error: Unknown option '--unknown' |
132 | | -[webpack-cli] Run 'webpack --help' to see available commands and options" |
| 131 | +"[webpack-cli] ✖ Error: Unknown option '--unknown' |
| 132 | +[webpack-cli] ✖ Run 'webpack --help' to see available commands and options" |
133 | 133 | `; |
134 | 134 |
|
135 | 135 | exports[`unknown behaviour should log an error if an unknown flag is passed: stdout 1`] = `""`; |
136 | 136 |
|
137 | 137 | exports[`unknown behaviour should log error and provide suggestion if an unknown command passed: stderr 1`] = ` |
138 | | -"[webpack-cli] Unknown command or entry 'serverr' |
139 | | -[webpack-cli] Did you mean 'serve' (alias 'server, s')? |
140 | | -[webpack-cli] Run 'webpack --help' to see available commands and options" |
| 138 | +"[webpack-cli] ✖ Unknown command or entry 'serverr' |
| 139 | +[webpack-cli] ✖ Did you mean 'serve' (alias 'server, s')? |
| 140 | +[webpack-cli] ✖ Run 'webpack --help' to see available commands and options" |
141 | 141 | `; |
142 | 142 |
|
143 | 143 | exports[`unknown behaviour should log error and provide suggestion if an unknown command passed: stdout 1`] = `""`; |
144 | 144 |
|
145 | 145 | exports[`unknown behaviour should log error and respect --color flag: stderr 1`] = ` |
146 | | -"[webpack-cli] [31mError: Unknown option '--unknown'[39m |
147 | | -[webpack-cli] [31mRun 'webpack --help' to see available commands and options[39m" |
| 146 | +"[webpack-cli] [31m✖ Error: Unknown option '--unknown'[39m |
| 147 | +[webpack-cli] [31m✖ Run 'webpack --help' to see available commands and options[39m" |
148 | 148 | `; |
149 | 149 |
|
150 | 150 | exports[`unknown behaviour should log error and respect --color flag: stdout 1`] = `""`; |
151 | 151 |
|
152 | 152 | exports[`unknown behaviour should log error for unknown flag and respect --no-color: stderr 1`] = ` |
153 | | -"[webpack-cli] Error: Unknown option '--unknown' |
154 | | -[webpack-cli] Run 'webpack --help' to see available commands and options" |
| 153 | +"[webpack-cli] ✖ Error: Unknown option '--unknown' |
| 154 | +[webpack-cli] ✖ Run 'webpack --help' to see available commands and options" |
155 | 155 | `; |
156 | 156 |
|
157 | 157 | exports[`unknown behaviour should log error for unknown flag and respect --no-color: stdout 1`] = `""`; |
158 | 158 |
|
159 | 159 | exports[`unknown behaviour should log error if an unknown command passed: stderr 1`] = ` |
160 | | -"[webpack-cli] Unknown command or entry 'qqq' |
161 | | -[webpack-cli] Run 'webpack --help' to see available commands and options" |
| 160 | +"[webpack-cli] ✖ Unknown command or entry 'qqq' |
| 161 | +[webpack-cli] ✖ Run 'webpack --help' to see available commands and options" |
162 | 162 | `; |
163 | 163 |
|
164 | 164 | exports[`unknown behaviour should log error if an unknown command passed: stdout 1`] = `""`; |
0 commit comments