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

Method catch

packages/jest-jasmine2/src/PCancelable.ts:63–70  ·  view source on GitHub ↗
(
    onRejected?:
      | ((reason: unknown) => TResult | PromiseLike<TResult>)
      | undefined
      | null,
  )

Source from the content-addressed store, hash-verified

61 }
62
63 catch<TResult>(
64 onRejected?:
65 | ((reason: unknown) => TResult | PromiseLike<TResult>)
66 | undefined
67 | null,
68 ): Promise<T | TResult> {
69 return this._promise.catch(onRejected);
70 }
71
72 cancel(): void {
73 if (!this._pending || this._canceled) {

Callers 15

getChangedFilesPromiseFunction · 0.80
evaluateSyntheticModuleFunction · 0.80
tryLoadGraphSyncMethod · 0.80
linkAndEvaluateModuleMethod · 0.80
loadCjsAsEsmMethod · 0.80
EsmLoader.test.tsFile · 0.80
retryMethod · 0.80
onChangeMethod · 0.80
concurrentFnFunction · 0.80
makeThrowingMatcherFunction · 0.80
isPromise.test.tsFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected