histoire
Version:
A fast story book powered by Vite
20 lines • 764 B
TypeScript
import type { TestModule } from 'vitest/node';
/** Minimal Vitest shape the timeout diagnostics read. */
interface StuckVitestLike {
state: {
getTestModules: () => TestModule[];
getUnhandledErrors?: () => unknown[];
};
}
/**
* Prints what Vitest knows about a browser run that never finished.
*
* Shared by the story collection and the test run: a run that hangs leaves the
* timeout error alone to explain itself, which never says what the browser was
* actually doing.
* @param vitest The Vitest instance of the stuck run.
* @param title Headline naming the run that timed out.
*/
export declare function reportStuckVitestRun(vitest: StuckVitestLike, title: string): void;
export {};
//# sourceMappingURL=vitest-stuck-run.d.ts.map