Skip to content

Commit 87ada7e

Browse files
committed
test: update snaps
1 parent 3c49100 commit 87ada7e

File tree

1 file changed

+35
-32
lines changed

1 file changed

+35
-32
lines changed

test/e2e/__snapshots__/magic-html.test.js.snap.webpack5

+35-32
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ exports[`magicHtml option enabled multi compiler mode should handle HEAD request
213213

214214
exports[`magicHtml option enabled multi compiler mode should handle HEAD request to magic async html (/main): response text 1`] = `""`;
215215

216-
exports[`magicHtml option enabled with experiments.outputModule: false filename bundle.js should handle GET request to magic async html (/bundle): console messages 1`] = `
216+
exports[`magicHtml option enabled with experiments.outputModule: false filename bundle.js should not handle GET request to magic async html (/bundle): console messages 1`] = `
217217
Array [
218218
"[HMR] Waiting for update signal from WDS...",
219219
"Hey.",
@@ -222,40 +222,23 @@ Array [
222222
]
223223
`;
224224

225-
exports[`magicHtml option enabled with experiments.outputModule: false filename bundle.js should handle GET request to magic async html (/bundle): page errors 1`] = `Array []`;
225+
exports[`magicHtml option enabled with experiments.outputModule: false filename bundle.js should not handle GET request to magic async html (/bundle): page errors 1`] = `Array []`;
226226

227-
exports[`magicHtml option enabled with experiments.outputModule: false filename bundle.js should handle GET request to magic async html (/bundle): response headers content-type 1`] = `"text/html; charset=utf-8"`;
227+
exports[`magicHtml option enabled with experiments.outputModule: false filename bundle.js should not handle GET request to magic async html (/bundle): response headers content-type 1`] = `"text/html; charset=utf-8"`;
228228

229-
exports[`magicHtml option enabled with experiments.outputModule: false filename bundle.js should handle GET request to magic async html (/bundle): response status 1`] = `200`;
229+
exports[`magicHtml option enabled with experiments.outputModule: false filename bundle.js should not handle GET request to magic async html (/bundle): response status 1`] = `200`;
230230

231-
exports[`magicHtml option enabled with experiments.outputModule: false filename bundle.js should handle GET request to magic async html (/bundle): response text 1`] = `"<!DOCTYPE html><html><head><meta charset=\\"utf-8\\"/></head><body><script type=\\"text/javascript\\" charset=\\"utf-8\\" src=\\"/bundle.js\\"></script></body></html>"`;
231+
exports[`magicHtml option enabled with experiments.outputModule: false filename bundle.js should not handle GET request to magic async html (/bundle): response text 1`] = `"<!DOCTYPE html><html><head><meta charset=\\"utf-8\\"/></head><body><script type=\\"text/javascript\\" charset=\\"utf-8\\" src=\\"/bundle.js\\"></script></body></html>"`;
232232

233-
exports[`magicHtml option enabled with experiments.outputModule: false filename bundle.js should handle HEAD request to magic async html (/bundle): console messages 1`] = `Array []`;
233+
exports[`magicHtml option enabled with experiments.outputModule: false filename bundle.js should not handle HEAD request to magic async html (/bundle): console messages 1`] = `Array []`;
234234

235-
exports[`magicHtml option enabled with experiments.outputModule: false filename bundle.js should handle HEAD request to magic async html (/bundle): page errors 1`] = `Array []`;
235+
exports[`magicHtml option enabled with experiments.outputModule: false filename bundle.js should not handle HEAD request to magic async html (/bundle): page errors 1`] = `Array []`;
236236

237-
exports[`magicHtml option enabled with experiments.outputModule: false filename bundle.js should handle HEAD request to magic async html (/bundle): response headers content-type 1`] = `"text/html; charset=utf-8"`;
237+
exports[`magicHtml option enabled with experiments.outputModule: false filename bundle.js should not handle HEAD request to magic async html (/bundle): response headers content-type 1`] = `"text/html; charset=utf-8"`;
238238

239-
exports[`magicHtml option enabled with experiments.outputModule: false filename bundle.js should handle HEAD request to magic async html (/bundle): response status 1`] = `200`;
239+
exports[`magicHtml option enabled with experiments.outputModule: false filename bundle.js should not handle HEAD request to magic async html (/bundle): response status 1`] = `200`;
240240

241-
exports[`magicHtml option enabled with experiments.outputModule: false filename bundle.js should handle HEAD request to magic async html (/bundle): response text 1`] = `""`;
242-
243-
exports[`magicHtml option enabled with experiments.outputModule: false filename bundle.other.js should handle GET request to magic async html (/bundle.other): console messages 1`] = `
244-
Array [
245-
"[HMR] Waiting for update signal from WDS...",
246-
"Hey.",
247-
"[webpack-dev-server] Hot Module Replacement enabled.",
248-
"[webpack-dev-server] Live Reloading enabled.",
249-
]
250-
`;
251-
252-
exports[`magicHtml option enabled with experiments.outputModule: false filename bundle.other.js should handle GET request to magic async html (/bundle.other): page errors 1`] = `Array []`;
253-
254-
exports[`magicHtml option enabled with experiments.outputModule: false filename bundle.other.js should handle GET request to magic async html (/bundle.other): response headers content-type 1`] = `"text/html; charset=utf-8"`;
255-
256-
exports[`magicHtml option enabled with experiments.outputModule: false filename bundle.other.js should handle GET request to magic async html (/bundle.other): response status 1`] = `200`;
257-
258-
exports[`magicHtml option enabled with experiments.outputModule: false filename bundle.other.js should handle GET request to magic async html (/bundle.other): response text 1`] = `"<!DOCTYPE html><html><head><meta charset=\\"utf-8\\"/></head><body><script type=\\"text/javascript\\" charset=\\"utf-8\\" src=\\"/bundle.other.js\\"></script></body></html>"`;
241+
exports[`magicHtml option enabled with experiments.outputModule: false filename bundle.js should not handle HEAD request to magic async html (/bundle): response text 1`] = `""`;
259242

260243
exports[`magicHtml option enabled with experiments.outputModule: false filename bundle.other.js should handle HEAD request to magic async html (/bundle.other): console messages 1`] = `Array []`;
261244

@@ -293,6 +276,23 @@ exports[`magicHtml option enabled with experiments.outputModule: false filename
293276
"
294277
`;
295278

279+
exports[`magicHtml option enabled with experiments.outputModule: false filename bundle.other.js should not handle GET request to magic async html (/bundle.other): console messages 1`] = `
280+
Array [
281+
"[HMR] Waiting for update signal from WDS...",
282+
"Hey.",
283+
"[webpack-dev-server] Hot Module Replacement enabled.",
284+
"[webpack-dev-server] Live Reloading enabled.",
285+
]
286+
`;
287+
288+
exports[`magicHtml option enabled with experiments.outputModule: false filename bundle.other.js should not handle GET request to magic async html (/bundle.other): page errors 1`] = `Array []`;
289+
290+
exports[`magicHtml option enabled with experiments.outputModule: false filename bundle.other.js should not handle GET request to magic async html (/bundle.other): response headers content-type 1`] = `"text/html; charset=utf-8"`;
291+
292+
exports[`magicHtml option enabled with experiments.outputModule: false filename bundle.other.js should not handle GET request to magic async html (/bundle.other): response status 1`] = `200`;
293+
294+
exports[`magicHtml option enabled with experiments.outputModule: false filename bundle.other.js should not handle GET request to magic async html (/bundle.other): response text 1`] = `"<!DOCTYPE html><html><head><meta charset=\\"utf-8\\"/></head><body><script type=\\"text/javascript\\" charset=\\"utf-8\\" src=\\"/bundle.other.js\\"></script></body></html>"`;
295+
296296
exports[`magicHtml option enabled with experiments.outputModule: true and .js extension filename bundle.js should handle GET request to magic async html (/bundle): console messages 1`] = `
297297
Array [
298298
"[HMR] Waiting for update signal from WDS...",
@@ -373,19 +373,22 @@ exports[`magicHtml option enabled with experiments.outputModule: true and .js ex
373373
"
374374
`;
375375

376-
exports[`magicHtml option enabled with experiments.outputModule: true and .js extension multi compiler mode should handle GET request to magic async html (/bundle): console messages 1`] = `Array []`;
377-
378-
exports[`magicHtml option enabled with experiments.outputModule: true and .js extension multi compiler mode should handle GET request to magic async html (/bundle): page errors 1`] = `
376+
exports[`magicHtml option enabled with experiments.outputModule: true and .js extension multi compiler mode should handle GET request to magic async html (/bundle): console messages 1`] = `
379377
Array [
380-
[Error: SyntaxError: Cannot use 'import.meta' outside a module],
378+
"[HMR] Waiting for update signal from WDS...",
379+
"Hey.",
380+
"[webpack-dev-server] Hot Module Replacement enabled.",
381+
"[webpack-dev-server] Live Reloading enabled.",
381382
]
382383
`;
383384

385+
exports[`magicHtml option enabled with experiments.outputModule: true and .js extension multi compiler mode should handle GET request to magic async html (/bundle): page errors 1`] = `Array []`;
386+
384387
exports[`magicHtml option enabled with experiments.outputModule: true and .js extension multi compiler mode should handle GET request to magic async html (/bundle): response headers content-type 1`] = `"text/html; charset=utf-8"`;
385388

386389
exports[`magicHtml option enabled with experiments.outputModule: true and .js extension multi compiler mode should handle GET request to magic async html (/bundle): response status 1`] = `200`;
387390

388-
exports[`magicHtml option enabled with experiments.outputModule: true and .js extension multi compiler mode should handle GET request to magic async html (/bundle): response text 1`] = `"<!DOCTYPE html><html><head><meta charset=\\"utf-8\\"/></head><body><script type=\\"text/javascript\\" charset=\\"utf-8\\" src=\\"/bundle.js\\"></script></body></html>"`;
391+
exports[`magicHtml option enabled with experiments.outputModule: true and .js extension multi compiler mode should handle GET request to magic async html (/bundle): response text 1`] = `"<!DOCTYPE html><html><head><meta charset=\\"utf-8\\"/></head><body><script type=\\"module\\" charset=\\"utf-8\\" src=\\"/bundle.js\\"></script></body></html>"`;
389392

390393
exports[`magicHtml option enabled with experiments.outputModule: true and .js extension multi compiler mode should handle HEAD request to magic async html (/bundle): console messages 1`] = `Array []`;
391394

0 commit comments

Comments
 (0)