Skip to content

Commit

Permalink
test: prepare tests for other frameworks (#759)
Browse files Browse the repository at this point in the history
  • Loading branch information
evilebottnawi committed Nov 9, 2020
1 parent 066c64f commit 00b26a9
Show file tree
Hide file tree
Showing 3 changed files with 3,184 additions and 3,134 deletions.
36 changes: 18 additions & 18 deletions test/__snapshots__/middleware.test.js.snap
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

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`] = `
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`] = `
Array [
Array [
"webpack-dev-middleware",
Expand Down Expand Up @@ -47,7 +47,7 @@ Array [
]
`;

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`] = `
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`] = `
Array [
Array [
"webpack-dev-middleware",
Expand Down Expand Up @@ -87,7 +87,7 @@ Array [
]
`;

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`] = `
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`] = `
Array [
Array [
"webpack-dev-middleware",
Expand Down Expand Up @@ -134,7 +134,7 @@ Array [
]
`;

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`] = `
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`] = `
Array [
Array [
"webpack-dev-middleware",
Expand All @@ -160,7 +160,7 @@ Array [
]
`;

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`] = `
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`] = `
Array [
Array [
"webpack-dev-middleware",
Expand All @@ -179,7 +179,7 @@ Array [
]
`;

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`] = `
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`] = `
Array [
Array [
"webpack-dev-middleware",
Expand All @@ -205,7 +205,7 @@ Array [
]
`;

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`] = `
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`] = `
Array [
Array [
"webpack-dev-middleware",
Expand All @@ -224,11 +224,11 @@ Array [
]
`;

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."`;
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."`;

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."`;
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."`;

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

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

exports[`middleware logger should logging an error in "watch" method should logging on startup 1`] = `
exports[`express framework: middleware logger should logging an error in "watch" method should logging on startup 1`] = `
Array [
Array [
"webpack-dev-middleware",
Expand All @@ -264,7 +264,7 @@ Array [
]
`;

exports[`middleware logger should logging an warning should logging 1`] = `
exports[`express framework: middleware logger should logging an warning should logging 1`] = `
Array [
Array [
"webpack-dev-middleware",
Expand Down Expand Up @@ -318,7 +318,7 @@ Array [
]
`;

exports[`middleware logger should logging on successfully build in multi-compiler mode should logging 1`] = `
exports[`express framework: middleware logger should logging on successfully build in multi-compiler mode should logging 1`] = `
Array [
Array [
"webpack-dev-middleware",
Expand Down Expand Up @@ -372,7 +372,7 @@ Array [
]
`;

exports[`middleware logger should logging on successfully build should logging 1`] = `
exports[`express framework: middleware logger should logging on successfully build should logging 1`] = `
Array [
Array [
"webpack-dev-middleware",
Expand Down Expand Up @@ -412,7 +412,7 @@ Array [
]
`;

exports[`middleware logger should logging on unsuccessful build in multi-compiler should logging 1`] = `
exports[`express framework: middleware logger should logging on unsuccessful build in multi-compiler should logging 1`] = `
Array [
Array [
"webpack-dev-middleware",
Expand Down Expand Up @@ -494,7 +494,7 @@ Array [
]
`;

exports[`middleware logger should logging on unsuccessful build should logging 1`] = `
exports[`express framework: middleware logger should logging on unsuccessful build should logging 1`] = `
Array [
Array [
"webpack-dev-middleware",
Expand Down Expand Up @@ -548,7 +548,7 @@ Array [
]
`;

exports[`middleware logger should logging warnings in multi-compiler mode should logging 1`] = `
exports[`express framework: middleware logger should logging warnings in multi-compiler mode should logging 1`] = `
Array [
Array [
"webpack-dev-middleware",
Expand Down

0 comments on commit 00b26a9

Please sign in to comment.