vitest-marbles
Version:
Marble testing helpers library for RxJs and Jest
16 lines (15 loc) • 551 B
TypeScript
import { type MatchersObject } from '@vitest/expect';
import { SubscriptionLog, TestMessages } from '../rxjs/types';
export declare const customTestMatchers: MatchersObject;
interface VitestMarblesMatchers {
toBeNotifications(notifications: TestMessages): void;
toBeSubscriptions(subscriptions: SubscriptionLog[]): void;
toHaveEmptySubscriptions(): void;
}
declare module 'vitest' {
interface Assertion extends VitestMarblesMatchers {
}
interface AsymmetricMatchersContaining extends VitestMarblesMatchers {
}
}
export {};