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

Function assertTrue

repos/effect/packages/effect/test/utils/assert.ts:59–61  ·  view source on GitHub ↗
(self: unknown, message?: string, ..._: Array<never>)

Source from the content-addressed store, hash-verified

57// ----------------------------
58
59/**
60 * Asserts that `value` is an instance of `constructor`.
61 */
62export function assertInstanceOf<C extends new(...args: any) => any>(
63 value: unknown,
64 constructor: C,

Callers 15

Iterable.test.tsFile · 0.90
FiberSet.test.tsFile · 0.90
Record.test.tsFile · 0.90
Option.test.tsFile · 0.90
Result.test.tsFile · 0.90
Chunk.test.tsFile · 0.90
Order.test.tsFile · 0.90
Optic.test.tsFile · 0.90
Newtype.test.tsFile · 0.90

Calls 1

strictEqualFunction · 0.70

Tested by 2

expectUrlFunction · 0.72
assertJsonSchemaDocumentFunction · 0.72

Used in the wild real call sites across dependent graphs

searching dependent graphs…