MCPcopy
hub / github.com/webpack/webpack / handleFatalError

Function handleFatalError

test/ConfigTestCases.template.js:273–296  ·  test/ConfigTestCases.template.js::handleFatalError
(err, done)

Source from the content-addressed store, hash-verified

271 * @param {(err?: Error) => void} done done callback
272 */
273 const handleFatalError = (err, done) => {
274 const fakeStats = {
275 errors: [
276 {
277 message: err.message,
278 stack: err.stack
279 }
280 ]
281 };
282 if (
283 checkArrayExpectation(
284 testDirectory,
285 fakeStats,
286 class="st">"error",
287 class="st">"Error",
288 options,
289 done
290 )
291 ) {
292 return;
293 }
294 class="cm">// Wait for uncaught errors to occur
295 setTimeout(done, 200);
296 };
297 if (config.cache) {
298 it(`${testName} should pre-compile to fill disk cache (1st)`, (done) => {
299 rimraf.sync(outputDirectory);

Callers 2

describeCasesFunction · 0.85
onCompiledFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected