MCPcopy
hub / github.com/jestjs/jest / uncaught

Method uncaught

packages/jest-jasmine2/src/jasmine/Env.ts:258–266  ·  view source on GitHub ↗
(err: any)

Source from the content-addressed store, hash-verified

256
257 const uncaught: NodeJS.UncaughtExceptionListener &
258 NodeJS.UnhandledRejectionListener = (err: any) => {
259 if (currentSpec) {
260 currentSpec.onException(err);
261 currentSpec.cancel();
262 } else {
263 console.error('Unhandled error');
264 console.error(err.stack);
265 }
266 };
267
268 let oldListenersException: Array<NodeJS.UncaughtExceptionListener>;
269 let oldListenersRejection: Array<NodeJS.UnhandledRejectionListener>;

Callers

nothing calls this directly

Calls 3

onExceptionMethod · 0.45
cancelMethod · 0.45
errorMethod · 0.45

Tested by

no test coverage detected