Skip to content

test: entry #3499

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Jul 1, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
68 changes: 68 additions & 0 deletions test/e2e/__snapshots__/entry.test.js.snap.webpack4
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`entry should work with dynamic async entry: 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[`entry should work with dynamic async entry: page errors 1`] = `Array []`;

exports[`entry should work with dynamic entry: 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[`entry should work with dynamic entry: page errors 1`] = `Array []`;

exports[`entry should work with multiple entries #2: console messages 1`] = `
Array [
"[HMR] Waiting for update signal from WDS...",
"Bar.",
"[webpack-dev-server] Hot Module Replacement enabled.",
"[webpack-dev-server] Live Reloading enabled.",
]
`;

exports[`entry should work with multiple entries #2: page errors 1`] = `Array []`;

exports[`entry should work with multiple entries: 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[`entry should work with multiple entries: page errors 1`] = `Array []`;

exports[`entry should work with single array entry: console messages 1`] = `
Array [
"[HMR] Waiting for update signal from WDS...",
"Hey.",
"Bar.",
"[webpack-dev-server] Hot Module Replacement enabled.",
"[webpack-dev-server] Live Reloading enabled.",
]
`;

exports[`entry should work with single array entry: page errors 1`] = `Array []`;

exports[`entry should work with single entry: 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[`entry should work with single entry: page errors 1`] = `Array []`;
102 changes: 102 additions & 0 deletions test/e2e/__snapshots__/entry.test.js.snap.webpack5
Original file line number Diff line number Diff line change
@@ -0,0 +1,102 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`entry should work with dynamic async entry: 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[`entry should work with dynamic async entry: page errors 1`] = `Array []`;

exports[`entry should work with dynamic entry: 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[`entry should work with dynamic entry: page errors 1`] = `Array []`;

exports[`entry should work with empty: 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[`entry should work with empty: page errors 1`] = `Array []`;

exports[`entry should work with multiple entries #2: console messages 1`] = `
Array [
"[HMR] Waiting for update signal from WDS...",
"Bar.",
"[webpack-dev-server] Hot Module Replacement enabled.",
"[webpack-dev-server] Live Reloading enabled.",
]
`;

exports[`entry should work with multiple entries #2: page errors 1`] = `Array []`;

exports[`entry should work with multiple entries and "dependOn": console messages 1`] = `
Array [
"[HMR] Waiting for update signal from WDS...",
"Bar.",
"[webpack-dev-server] Hot Module Replacement enabled.",
"[webpack-dev-server] Live Reloading enabled.",
"Hey.",
]
`;

exports[`entry should work with multiple entries and "dependOn": page errors 1`] = `Array []`;

exports[`entry should work with multiple entries: 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[`entry should work with multiple entries: page errors 1`] = `Array []`;

exports[`entry should work with object entry: 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[`entry should work with object entry: page errors 1`] = `Array []`;

exports[`entry should work with single array entry: console messages 1`] = `
Array [
"[HMR] Waiting for update signal from WDS...",
"Hey.",
"Bar.",
"[webpack-dev-server] Hot Module Replacement enabled.",
"[webpack-dev-server] Live Reloading enabled.",
]
`;

exports[`entry should work with single array entry: page errors 1`] = `Array []`;

exports[`entry should work with single entry: 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[`entry should work with single entry: page errors 1`] = `Array []`;
Loading