effect-io-ai

Package: @effect/vitest
Module: utils

utils.throwsAsync

Asserts that thunk throws an error.

Signature

declare const throwsAsync: (thunk: () => Promise<void>, error?: Error | ((u: unknown) => undefined), ..._: Array<never>) => Promise<void>

Source

Since v0.21.0