MCPcopy
hub / github.com/webpack/webpack / expectWarning

Function expectWarning

test/helpers/expectWarningFactory.js:25–28  ·  view source on GitHub ↗
(...regexp)

Source from the content-addressed store, hash-verified

23 * @returns {void}
24 */
25 const expectWarning = (...regexp) => {
26 expect(warnings).toEqual(regexp.map((r) => expect.stringMatching(r)));
27 warnings.length = 0;
28 };
29
30 return expectWarning;
31};

Callers 2

index.jsFile · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected