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

Method isAssertionError

packages/jest-jasmine2/src/jasmine/Spec.ts:298–303  ·  view source on GitHub ↗
(error: Error)

Source from the content-addressed store, hash-verified

296 }
297
298 isAssertionError(error: Error) {
299 return (
300 error instanceof AssertionError ||
301 (error && error.name === AssertionError.name)
302 );
303 }
304}
305
306Spec.pendingSpecExceptionMessage = '=> marked Pending';

Callers 1

onExceptionMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected