MCPcopy
hub / github.com/webpack/webpack / nanTest

Function nanTest

test/ProgressPlugin.test.js:124–132  ·  test/ProgressPlugin.test.js::nanTest
(/** @type {(...args: EXPECTED_ANY[]) => EXPECTED_ANY} */ createCompiler)

Source from the content-addressed store, hash-verified

122
123 const nanTest =
124 (/** @type {(...args: EXPECTED_ANY[]) => EXPECTED_ANY} */ createCompiler) =>
125 () => {
126 const compiler = createCompiler();
127
128 return runCompilerAsync(compiler).then(() => {
129 expect(stderr.toString()).toContain(class="st">"%");
130 expect(stderr.toString()).not.toContain(class="st">"NaN");
131 });
132 };
133
134 it(
135 class="st">"should not contain NaN as a percentage when it is applied to Compiler",

Callers 1

Calls 3

runCompilerAsyncFunction · 0.85
createCompilerFunction · 0.70
toStringMethod · 0.45

Tested by

no test coverage detected