|
1 | 1 | // Jest Snapshot v1, https://goo.gl/fbAQLP
|
2 | 2 |
|
| 3 | +exports[`JsonReporter > json: reporter should apply #0 1`] = ` |
| 4 | +Object { |
| 5 | + "context": "<PROJECT_ROOT>", |
| 6 | + "entry": "<PROJECT_ROOT>/test/fixtures/common/entry-a.js", |
| 7 | + "mode": "development", |
| 8 | + "plugins": Array [ |
| 9 | + NamedModulesPlugin { |
| 10 | + "options": Object {}, |
| 11 | + }, |
| 12 | + ], |
| 13 | + "reporter": "json", |
| 14 | +} |
| 15 | +`; |
| 16 | + |
| 17 | +exports[`JsonReporter > json-multi: reporter should apply #0 1`] = ` |
| 18 | +Array [ |
| 19 | + Object { |
| 20 | + "context": "<PROJECT_ROOT>", |
| 21 | + "entry": "<PROJECT_ROOT>/test/fixtures/common/entry-a.js", |
| 22 | + "mode": "development", |
| 23 | + "plugins": Array [ |
| 24 | + NamedModulesPlugin { |
| 25 | + "options": Object {}, |
| 26 | + }, |
| 27 | + ], |
| 28 | + "reporter": "json", |
| 29 | + }, |
| 30 | + Object { |
| 31 | + "context": "<PROJECT_ROOT>", |
| 32 | + "entry": Array [ |
| 33 | + "<PROJECT_ROOT>/test/fixtures/common/entry-b.js", |
| 34 | + "<PROJECT_ROOT>/test/fixtures/common/entry-c.js", |
| 35 | + ], |
| 36 | + "mode": "development", |
| 37 | + "plugins": Array [ |
| 38 | + NamedModulesPlugin { |
| 39 | + "options": Object {}, |
| 40 | + }, |
| 41 | + ], |
| 42 | + "reporter": "json", |
| 43 | + }, |
| 44 | +] |
| 45 | +`; |
| 46 | + |
| 47 | +exports[`JsonReporter > problems/problems: reporter should apply #0 1`] = ` |
| 48 | +Object { |
| 49 | + "context": "<PROJECT_ROOT>", |
| 50 | + "entry": "<PROJECT_ROOT>/test/fixtures/reporters/json/problems/entry-problems.js", |
| 51 | + "mode": "development", |
| 52 | + "plugins": Array [ |
| 53 | + NamedModulesPlugin { |
| 54 | + "options": Object {}, |
| 55 | + }, |
| 56 | + ], |
| 57 | + "reporter": "json", |
| 58 | +} |
| 59 | +`; |
| 60 | + |
3 | 61 | exports[`StylishReporter > problems/stylish-problems reporter should apply #0 1`] = `
|
4 | 62 | Object {
|
5 | 63 | "entry": "<PROJECT_ROOT>/test/fixtures/reporters/stylish/problems/entry-problems.js",
|
@@ -28,6 +86,50 @@ webpack v4.6.0
|
28 | 86 | <duration>
|
29 | 87 |
|
30 | 88 |
|
| 89 | +./test/fixtures/reporters/stylish/problems/entry-problems.js |
| 90 | + 5:15 error Module not found: Error: Can't resolve 'test' in |
| 91 | + '<PROJECT_ROOT>/test/fixtures/reporters/stylish/problems' |
| 92 | + 2:12 warning Critical dependency: require function is used in a way in which |
| 93 | + dependencies cannot be statically extracted |
| 94 | +
|
| 95 | +./test/fixtures/reporters/stylish/problems/image.jpg |
| 96 | + 1:0 error Module parse failed: Unexpected character '�' You may need an |
| 97 | + appropriate loader to handle this file type. (Source code omitted for |
| 98 | + this binary file) @ |
| 99 | + ./test/fixtures/reporters/stylish/problems/entry-problems.js 7:0-22 |
| 100 | +
|
| 101 | +✖ 3 problems (2 errors, 1 warning)" |
| 102 | +`; |
| 103 | +
|
| 104 | +exports[`StylishReporter > problems/stylish-problems: reporter should apply #0 1`] = ` |
| 105 | +Object { |
| 106 | + "context": "<PROJECT_ROOT>", |
| 107 | + "entry": "<PROJECT_ROOT>/test/fixtures/reporters/stylish/problems/entry-problems.js", |
| 108 | + "mode": "development", |
| 109 | + "plugins": Array [ |
| 110 | + NamedModulesPlugin { |
| 111 | + "options": Object {}, |
| 112 | + }, |
| 113 | + ], |
| 114 | +} |
| 115 | +`; |
| 116 | +
|
| 117 | +exports[`StylishReporter > problems/stylish-problems: reporter should build #0 1`] = ` |
| 118 | +" |
| 119 | +webpack v4.6.0 |
| 120 | +
|
| 121 | +<hash> |
| 122 | + size name module status |
| 123 | + 160 B problems sync recursive ./test/fixtures/reporters/stylish/problems sync built |
| 124 | + 148 B entry-problems.js ./test/fixtures/reporters/stylish/problems/entry-problems.js built ⚠ ✖ |
| 125 | + 177 B image.jpg ./test/fixtures/reporters/stylish/problems/image.jpg built failed ✖ |
| 126 | +
|
| 127 | + size name asset status |
| 128 | + <size> main main.js emitted |
| 129 | +
|
| 130 | + <duration> |
| 131 | +
|
| 132 | +
|
31 | 133 | ./test/fixtures/reporters/stylish/problems/entry-problems.js
|
32 | 134 | 5:15 error Module not found: Error: Can't resolve 'test' in
|
33 | 135 | '<PROJECT_ROOT>/test/fixtures/reporters/stylish/problems'
|
@@ -70,6 +172,34 @@ webpack v4.6.0
|
70 | 172 | "
|
71 | 173 | `;
|
72 | 174 |
|
| 175 | +exports[`StylishReporter > stylish: reporter should apply #0 1`] = ` |
| 176 | +Object { |
| 177 | + "context": "<PROJECT_ROOT>", |
| 178 | + "entry": "<PROJECT_ROOT>/test/fixtures/common/entry-a.js", |
| 179 | + "mode": "development", |
| 180 | + "plugins": Array [ |
| 181 | + NamedModulesPlugin { |
| 182 | + "options": Object {}, |
| 183 | + }, |
| 184 | + ], |
| 185 | +} |
| 186 | +`; |
| 187 | +
|
| 188 | +exports[`StylishReporter > stylish: reporter should build #0 1`] = ` |
| 189 | +" |
| 190 | +webpack v4.6.0 |
| 191 | +
|
| 192 | +<hash> |
| 193 | + size name module status |
| 194 | + 41 B entry-a.js ./test/fixtures/common/entry-a.js built |
| 195 | +
|
| 196 | + size name asset status |
| 197 | + <size> main main.js emitted |
| 198 | +
|
| 199 | + <duration> |
| 200 | +" |
| 201 | +`; |
| 202 | +
|
73 | 203 | exports[`StylishReporter > stylish-multi reporter should apply #0 1`] = `
|
74 | 204 | Array [
|
75 | 205 | Object {
|
@@ -123,6 +253,90 @@ webpack v4.6.0
|
123 | 253 | total <duration>"
|
124 | 254 | `;
|
125 | 255 |
|
| 256 | +exports[`StylishReporter > stylish-multi: reporter should apply #0 1`] = ` |
| 257 | +Array [ |
| 258 | + Object { |
| 259 | + "context": "<PROJECT_ROOT>", |
| 260 | + "entry": "<PROJECT_ROOT>/test/fixtures/common/entry-a.js", |
| 261 | + "mode": "development", |
| 262 | + "plugins": Array [ |
| 263 | + NamedModulesPlugin { |
| 264 | + "options": Object {}, |
| 265 | + }, |
| 266 | + ], |
| 267 | + }, |
| 268 | + Object { |
| 269 | + "context": "<PROJECT_ROOT>", |
| 270 | + "entry": Array [ |
| 271 | + "<PROJECT_ROOT>/test/fixtures/common/entry-b.js", |
| 272 | + "<PROJECT_ROOT>/test/fixtures/common/entry-c.js", |
| 273 | + ], |
| 274 | + "mode": "development", |
| 275 | + "plugins": Array [ |
| 276 | + NamedModulesPlugin { |
| 277 | + "options": Object {}, |
| 278 | + }, |
| 279 | + ], |
| 280 | + }, |
| 281 | +] |
| 282 | +`; |
| 283 | +
|
| 284 | +exports[`StylishReporter > stylish-multi: reporter should build #0 1`] = ` |
| 285 | +" |
| 286 | +webpack v4.6.0 |
| 287 | +
|
| 288 | +<hash> |
| 289 | + size name module status |
| 290 | + 41 B entry-a.js ./test/fixtures/common/entry-a.js built |
| 291 | +
|
| 292 | + size name asset status |
| 293 | + <size> main main.js emitted |
| 294 | +
|
| 295 | + <duration> |
| 296 | +
|
| 297 | +<hash> |
| 298 | + size name module status |
| 299 | + 41 B entry-b.js ./test/fixtures/common/entry-b.js built |
| 300 | + 41 B entry-c.js ./test/fixtures/common/entry-c.js built |
| 301 | + 40 B 0 multi ./test/fixtures/common/entry-b.js ./test/fixtures/common/entry-c.js built |
| 302 | +
|
| 303 | + size name asset status |
| 304 | + <size> main main.js emitted |
| 305 | +
|
| 306 | + <duration> |
| 307 | +
|
| 308 | +total <duration>" |
| 309 | +`; |
| 310 | +
|
| 311 | +exports[`bad reporter name > should apply #0 1`] = ` |
| 312 | +Object { |
| 313 | + "context": "<PROJECT_ROOT>", |
| 314 | + "entry": "<PROJECT_ROOT>/test/fixtures/common/entry-a.js", |
| 315 | + "mode": "development", |
| 316 | + "plugins": Array [ |
| 317 | + NamedModulesPlugin { |
| 318 | + "options": Object {}, |
| 319 | + }, |
| 320 | + ], |
| 321 | + "reporter": "batman", |
| 322 | +} |
| 323 | +`; |
| 324 | +
|
| 325 | +exports[`bad reporter name > should default to stylish #0 1`] = ` |
| 326 | +" |
| 327 | +webpack v4.6.0 |
| 328 | +
|
| 329 | +<hash> |
| 330 | + size name module status |
| 331 | + 41 B entry-a.js ./test/fixtures/common/entry-a.js built |
| 332 | +
|
| 333 | + size name asset status |
| 334 | + <size> main main.js emitted |
| 335 | +
|
| 336 | + <duration> |
| 337 | +" |
| 338 | +`; |
| 339 | +
|
126 | 340 | exports[`reporter parse util > should parse hidden #0 1`] = `"(1 asset, 2 modules hidden)"`;
|
127 | 341 |
|
128 | 342 | exports[`reporter parse util > should parse status: cacheable #0 1`] = `
|
|
0 commit comments