MCPcopy Create free account
hub / github.com/arktypeio/arktype / throwAssertionError

Function throwAssertionError

ark/attest/assert/assertions.ts:20–27  ·  view source on GitHub ↗
({
	stack,
	...errorArgs
}: ThrowAssertionErrorContext)

Source from the content-addressed store, hash-verified

18}
19
20export const throwAssertionError = ({
21 stack,
22 ...errorArgs
23}: ThrowAssertionErrorContext): never => {
24 const e = new assert.AssertionError(errorArgs)
25 e.stack = stack
26 throw e
27}
28
29export class MissingSnapshotError extends Error {}
30

Callers 5

instanceOfMethod · 0.90
handlePositiveDeltaFunction · 0.90
versionableAssertionFunction · 0.85
assertions.tsFile · 0.85
getThrownMessageFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected