histoire
Version:
A fast story book powered by Vite
12 lines • 659 B
TypeScript
/**
* Drains assertions registered on a task, including ones added while draining.
* Ignore promises owned by the caller: a unit test may itself await this run
* through expect(...).rejects, which must never be awaited from inside the run.
*/
export declare function settleTestPromises(task: any, ignored?: Set<Promise<unknown>>): Promise<unknown[]>;
/**
* Detaches pending assertions after their owning test already failed or timed
* out. `allSettled` observes later rejections while allowing teardown to run.
*/
export declare function discardTestPromises(task: any, ignored?: Set<Promise<unknown>>): void;
//# sourceMappingURL=task-promises.d.ts.map