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

Function assertNone

repos/effect/packages/effect/test/utils/assert.ts:124–126  ·  view source on GitHub ↗
(option: Option.Option<A>, ..._: Array<never>)

Source from the content-addressed store, hash-verified

122
123export async function throwsAsync(
124 thunk: () => Promise<void>,
125 error?: Error | ((u: unknown) => undefined),
126 ..._: Array<never>
127) {
128 try {
129 await thunk()

Callers 15

Iterable.test.tsFile · 0.90
Record.test.tsFile · 0.90
Number.test.tsFile · 0.90
Option.test.tsFile · 0.90
DateTime.test.tsFile · 0.90
Result.test.tsFile · 0.90
Chunk.test.tsFile · 0.90
BigInt.test.tsFile · 0.90
BigDecimal.test.tsFile · 0.90
String.test.tsFile · 0.90
Graph.test.tsFile · 0.90

Calls 1

deepStrictEqualFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…