histoire
Version:
A fast story book powered by Vite
20 lines • 890 B
TypeScript
/** Slice of Vitest's worker used by the preview and real browser harness. */
interface VitestWorkerState {
/** File attributed to the current task. */
filepath?: string;
/** Real Vitest task or the embedded preview task. */
current?: any;
/** Resolved Vitest runtime settings used by embedded hooks. */
config?: {
/** Default hook deadline in milliseconds. */
hookTimeout?: number;
/** Default test deadline in milliseconds. */
testTimeout?: number;
};
}
/** Reads the worker installed by Vitest or preview bootstrap. */
export declare function getVitestWorkerState(): VitestWorkerState | undefined;
/** Only isolated browser specs with confirmed teardown can retain the discovery mount. */
export declare function getVitestBrowserMountCleanups(): (() => void)[] | undefined;
export {};
//# sourceMappingURL=worker-state.d.ts.map