MCPcopy
hub / github.com/webpack/webpack-dev-server / waitForConsoleLogFinished

Function waitForConsoleLogFinished

test/e2e/entry.test.js:17–27  ·  view source on GitHub ↗
(consoleLogs)

Source from the content-addressed store, hash-verified

15 "[webpack-dev-server] Server started: Hot Module Replacement enabled, Live Reloading enabled, Progress disabled, Overlay enabled.";
16
17const waitForConsoleLogFinished = async (consoleLogs) => {
18 await new Promise((resolve) => {
19 const interval = setInterval(() => {
20 if (consoleLogs.includes(HOT_ENABLED_MESSAGE)) {
21 clearInterval(interval);
22
23 resolve();
24 }
25 }, 100);
26 });
27};
28
29describe("entry", () => {
30 const entryFirst = path.resolve(

Callers 1

entry.test.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…