Skip to content

Commit 00b26a9

Browse files
test: prepare tests for other frameworks (#759)
1 parent 066c64f commit 00b26a9

File tree

3 files changed

+3184
-3134
lines changed

3 files changed

+3184
-3134
lines changed

test/__snapshots__/middleware.test.js.snap

+18-18
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// Jest Snapshot v1, https://goo.gl/fbAQLP
22

3-
exports[`middleware basic should respect the "stats" option from the configuration in multi-compiler mode and use the "name" option should return the "200" code for "GET" requests to bundle files 1`] = `
3+
exports[`express framework: middleware basic should respect the "stats" option from the configuration in multi-compiler mode and use the "name" option should return the "200" code for "GET" requests to bundle files 1`] = `
44
Array [
55
Array [
66
"webpack-dev-middleware",
@@ -47,7 +47,7 @@ Array [
4747
]
4848
`;
4949

50-
exports[`middleware basic should respect the "stats" option from the configuration in multi-compiler mode should return the "200" code for the "GET" request to bundle files 1`] = `
50+
exports[`express framework: middleware basic should respect the "stats" option from the configuration in multi-compiler mode should return the "200" code for the "GET" request to bundle files 1`] = `
5151
Array [
5252
Array [
5353
"webpack-dev-middleware",
@@ -87,7 +87,7 @@ Array [
8787
]
8888
`;
8989

90-
exports[`middleware basic should respect the "stats" option in multi-compiler mode should return the "200" code for the "GET" requests to bundles file 1`] = `
90+
exports[`express framework: middleware basic should respect the "stats" option in multi-compiler mode should return the "200" code for the "GET" requests to bundles file 1`] = `
9191
Array [
9292
Array [
9393
"webpack-dev-middleware",
@@ -134,7 +134,7 @@ Array [
134134
]
135135
`;
136136

137-
exports[`middleware basic should respect the "stats" option with the "{ all: false, entrypoints: true }" value from the configuration should return the "200" code for the "GET" request to the bundle file 1`] = `
137+
exports[`express framework: middleware basic should respect the "stats" option with the "{ all: false, entrypoints: true }" value from the configuration should return the "200" code for the "GET" request to the bundle file 1`] = `
138138
Array [
139139
Array [
140140
"webpack-dev-middleware",
@@ -160,7 +160,7 @@ Array [
160160
]
161161
`;
162162

163-
exports[`middleware basic should respect the "stats" option with the "false" value from the configuration should return the "200" code for the "GET" request to the bundle file 1`] = `
163+
exports[`express framework: middleware basic should respect the "stats" option with the "false" value from the configuration should return the "200" code for the "GET" request to the bundle file 1`] = `
164164
Array [
165165
Array [
166166
"webpack-dev-middleware",
@@ -179,7 +179,7 @@ Array [
179179
]
180180
`;
181181

182-
exports[`middleware basic should respect the "stats" option with the "minimal" value from the configuration should return the "200" code for the "GET" request to the bundle file 1`] = `
182+
exports[`express framework: middleware basic should respect the "stats" option with the "minimal" value from the configuration should return the "200" code for the "GET" request to the bundle file 1`] = `
183183
Array [
184184
Array [
185185
"webpack-dev-middleware",
@@ -205,7 +205,7 @@ Array [
205205
]
206206
`;
207207

208-
exports[`middleware basic should respect the "stats" option with the "none" value from the configuration should return the "200" code for the "GET" request to the bundle file 1`] = `
208+
exports[`express framework: middleware basic should respect the "stats" option with the "none" value from the configuration should return the "200" code for the "GET" request to the bundle file 1`] = `
209209
Array [
210210
Array [
211211
"webpack-dev-middleware",
@@ -224,11 +224,11 @@ Array [
224224
]
225225
`;
226226

227-
exports[`middleware basic should throw an error on "run" when we watching should logging an error 1`] = `"You ran Webpack twice. Each instance only supports a single concurrent compilation at a time."`;
227+
exports[`express framework: middleware basic should throw an error on "run" when we watching should logging an error 1`] = `"You ran Webpack twice. Each instance only supports a single concurrent compilation at a time."`;
228228

229-
exports[`middleware basic should throw an error on "watch" when we watching should logging an error 1`] = `"You ran Webpack twice. Each instance only supports a single concurrent compilation at a time."`;
229+
exports[`express framework: middleware basic should throw an error on "watch" when we watching should logging an error 1`] = `"You ran Webpack twice. Each instance only supports a single concurrent compilation at a time."`;
230230

231-
exports[`middleware logger should logging an error from the "fs.mkdir" method when the "writeToDisk" option is "true" should logging 1`] = `
231+
exports[`express framework: middleware logger should logging an error from the "fs.mkdir" method when the "writeToDisk" option is "true" should logging 1`] = `
232232
Array [
233233
Array [
234234
"webpack-dev-middleware",
@@ -240,7 +240,7 @@ Array [
240240
]
241241
`;
242242

243-
exports[`middleware logger should logging an error from the "fs.writeFile" method when the "writeToDisk" option is "true" should logging 1`] = `
243+
exports[`express framework: middleware logger should logging an error from the "fs.writeFile" method when the "writeToDisk" option is "true" should logging 1`] = `
244244
Array [
245245
Array [
246246
"webpack-dev-middleware",
@@ -252,7 +252,7 @@ Array [
252252
]
253253
`;
254254

255-
exports[`middleware logger should logging an error in "watch" method should logging on startup 1`] = `
255+
exports[`express framework: middleware logger should logging an error in "watch" method should logging on startup 1`] = `
256256
Array [
257257
Array [
258258
"webpack-dev-middleware",
@@ -264,7 +264,7 @@ Array [
264264
]
265265
`;
266266

267-
exports[`middleware logger should logging an warning should logging 1`] = `
267+
exports[`express framework: middleware logger should logging an warning should logging 1`] = `
268268
Array [
269269
Array [
270270
"webpack-dev-middleware",
@@ -318,7 +318,7 @@ Array [
318318
]
319319
`;
320320

321-
exports[`middleware logger should logging on successfully build in multi-compiler mode should logging 1`] = `
321+
exports[`express framework: middleware logger should logging on successfully build in multi-compiler mode should logging 1`] = `
322322
Array [
323323
Array [
324324
"webpack-dev-middleware",
@@ -372,7 +372,7 @@ Array [
372372
]
373373
`;
374374

375-
exports[`middleware logger should logging on successfully build should logging 1`] = `
375+
exports[`express framework: middleware logger should logging on successfully build should logging 1`] = `
376376
Array [
377377
Array [
378378
"webpack-dev-middleware",
@@ -412,7 +412,7 @@ Array [
412412
]
413413
`;
414414

415-
exports[`middleware logger should logging on unsuccessful build in multi-compiler should logging 1`] = `
415+
exports[`express framework: middleware logger should logging on unsuccessful build in multi-compiler should logging 1`] = `
416416
Array [
417417
Array [
418418
"webpack-dev-middleware",
@@ -494,7 +494,7 @@ Array [
494494
]
495495
`;
496496

497-
exports[`middleware logger should logging on unsuccessful build should logging 1`] = `
497+
exports[`express framework: middleware logger should logging on unsuccessful build should logging 1`] = `
498498
Array [
499499
Array [
500500
"webpack-dev-middleware",
@@ -548,7 +548,7 @@ Array [
548548
]
549549
`;
550550

551-
exports[`middleware logger should logging warnings in multi-compiler mode should logging 1`] = `
551+
exports[`express framework: middleware logger should logging warnings in multi-compiler mode should logging 1`] = `
552552
Array [
553553
Array [
554554
"webpack-dev-middleware",

0 commit comments

Comments
 (0)