-
-
Notifications
You must be signed in to change notification settings - Fork 37
/
test-library.d.ts
27 lines (22 loc) · 713 Bytes
/
test-library.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
import { Unit, Event, Store, Effect } from 'effector';
export function argumentHistory(fn: jest.Mock): Array<unknown>;
export function argumentsHistory(fn: jest.Mock): Array<Array<unknown>>;
export function time(): {
diff: () => number;
};
export function toBeCloseWithThreshold(
received: any,
expected: any,
threshold: any,
): {
pass: boolean;
message: () => string;
};
export function wait(ms: number): Promise<void>;
export function waitFor<T>(unit: Unit<T>): Promise<T>;
export function watch<T>(
unit: Event<T> | Store<T> | Effect<T, any, any>,
): jest.Mock<T, [T]>;
export function monitor(
units: Array<Event<any> | Store<any> | Effect<any, any, any>>,
): () => Array<[string, any]>;