UNPKG

vitest-marbles

Version:

Marble testing helpers library for RxJs and Jest

16 lines (13 loc) 560 B
import {type Assertion, type AsymmetricMatchersContaining } from 'vitest'; import { ObservableWithSubscriptions } from './index'; interface VitestMarblesMatchers { toBeObservable(observable: ObservableWithSubscriptions): void; toHaveSubscriptions(marbles: string | string[]): void; toHaveNoSubscriptions(): void; toBeMarble(marble: string): void; toSatisfyOnFlush(func: () => void): void; } declare module 'vitest' { interface Assertion extends VitestMarblesMatchers {} interface AsymmetricMatchersContaining extends VitestMarblesMatchers {} }