MCPcopy Create free account
hub / github.com/effect-app/libs / assertInstanceOf

Function assertInstanceOf

repos/effect/packages/effect/test/utils/assert.ts:50–57  ·  view source on GitHub ↗
(
  value: unknown,
  constructor: C,
  message?: string,
  ..._: Array<never>
)

Source from the content-addressed store, hash-verified

48 }
49}
50
51export function doesNotThrow(thunk: () => void, message?: string, ..._: Array<never>) {
52 assert.doesNotThrow(thunk, message)
53}
54
55// ----------------------------
56// Derived
57// ----------------------------
58
59/**
60 * Asserts that `value` is an instance of `constructor`.

Callers 3

throwsFunction · 0.70

Calls

no outgoing calls

Tested by 1

Used in the wild real call sites across dependent graphs

searching dependent graphs…