From f87803b372a362c54da709ef41b84398c98e3631 Mon Sep 17 00:00:00 2001 From: Nitin Kumar Date: Sun, 5 Sep 2021 09:33:19 +0530 Subject: [PATCH] test: update snapshots for webpack-4 --- .../magic-html.test.js.snap.webpack4 | 51 ++++++++++++++----- 1 file changed, 39 insertions(+), 12 deletions(-) diff --git a/test/e2e/__snapshots__/magic-html.test.js.snap.webpack4 b/test/e2e/__snapshots__/magic-html.test.js.snap.webpack4 index 6757581aa2..80239b28d4 100644 --- a/test/e2e/__snapshots__/magic-html.test.js.snap.webpack4 +++ b/test/e2e/__snapshots__/magic-html.test.js.snap.webpack4 @@ -40,19 +40,19 @@ exports[`magicHtml option disabled filename bundle.js should not handle HEAD req exports[`magicHtml option disabled filename bundle.js should not handle HEAD request to magic async html (/bundle): response text 1`] = `""`; -exports[`magicHtml option disabled filename bundle.other.js should not handle GET request to magic async html (/bundle.other): console messages 1`] = ` +exports[`magicHtml option disabled filename bundle.other.js should not handle GET request to /bundle: console messages 1`] = ` Array [ "Failed to load resource: the server responded with a status of 404 (Not Found)", ] `; -exports[`magicHtml option disabled filename bundle.other.js should not handle GET request to magic async html (/bundle.other): page errors 1`] = `Array []`; +exports[`magicHtml option disabled filename bundle.other.js should not handle GET request to /bundle: page errors 1`] = `Array []`; -exports[`magicHtml option disabled 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"`; +exports[`magicHtml option disabled filename bundle.other.js should not handle GET request to /bundle: response headers content-type 1`] = `"text/html; charset=utf-8"`; -exports[`magicHtml option disabled filename bundle.other.js should not handle GET request to magic async html (/bundle.other): response status 1`] = `404`; +exports[`magicHtml option disabled filename bundle.other.js should not handle GET request to /bundle: response status 1`] = `404`; -exports[`magicHtml option disabled filename bundle.other.js should not handle GET request to magic async html (/bundle.other): response text 1`] = ` +exports[`magicHtml option disabled filename bundle.other.js should not handle GET request to /bundle: response text 1`] = ` " @@ -60,25 +60,25 @@ exports[`magicHtml option disabled filename bundle.other.js should not handle GE Error -
Cannot GET /bundle.other
+
Cannot GET /bundle
" `; -exports[`magicHtml option disabled filename bundle.other.js should not handle GET request to /bundle: console messages 1`] = ` +exports[`magicHtml option disabled filename bundle.other.js should not handle GET request to magic async html (/bundle.other): console messages 1`] = ` Array [ "Failed to load resource: the server responded with a status of 404 (Not Found)", ] `; -exports[`magicHtml option disabled filename bundle.other.js should not handle GET request to /bundle: page errors 1`] = `Array []`; +exports[`magicHtml option disabled filename bundle.other.js should not handle GET request to magic async html (/bundle.other): page errors 1`] = `Array []`; -exports[`magicHtml option disabled filename bundle.other.js should not handle GET request to /bundle: response headers content-type 1`] = `"text/html; charset=utf-8"`; +exports[`magicHtml option disabled 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"`; -exports[`magicHtml option disabled filename bundle.other.js should not handle GET request to /bundle: response status 1`] = `404`; +exports[`magicHtml option disabled filename bundle.other.js should not handle GET request to magic async html (/bundle.other): response status 1`] = `404`; -exports[`magicHtml option disabled filename bundle.other.js should not handle GET request to /bundle: response text 1`] = ` +exports[`magicHtml option disabled filename bundle.other.js should not handle GET request to magic async html (/bundle.other): response text 1`] = ` " @@ -86,7 +86,7 @@ exports[`magicHtml option disabled filename bundle.other.js should not handle GE Error -
Cannot GET /bundle
+
Cannot GET /bundle.other
" @@ -185,3 +185,30 @@ exports[`magicHtml option enabled filename bundle.other.js should not handle GET " `; + +exports[`magicHtml option enabled multi compiler mode should handle GET request to magic async html (/main): console messages 1`] = ` +Array [ + "[HMR] Waiting for update signal from WDS...", + "Hey.", + "[webpack-dev-server] Hot Module Replacement enabled.", + "[webpack-dev-server] Live Reloading enabled.", +] +`; + +exports[`magicHtml option enabled multi compiler mode should handle GET request to magic async html (/main): page errors 1`] = `Array []`; + +exports[`magicHtml option enabled multi compiler mode should handle GET request to magic async html (/main): response headers content-type 1`] = `"text/html; charset=utf-8"`; + +exports[`magicHtml option enabled multi compiler mode should handle GET request to magic async html (/main): response status 1`] = `200`; + +exports[`magicHtml option enabled multi compiler mode should handle GET request to magic async html (/main): response text 1`] = `""`; + +exports[`magicHtml option enabled multi compiler mode should handle HEAD request to magic async html (/main): console messages 1`] = `Array []`; + +exports[`magicHtml option enabled multi compiler mode should handle HEAD request to magic async html (/main): page errors 1`] = `Array []`; + +exports[`magicHtml option enabled multi compiler mode should handle HEAD request to magic async html (/main): response headers content-type 1`] = `"text/html; charset=utf-8"`; + +exports[`magicHtml option enabled multi compiler mode should handle HEAD request to magic async html (/main): response status 1`] = `200`; + +exports[`magicHtml option enabled multi compiler mode should handle HEAD request to magic async html (/main): response text 1`] = `""`;