UNPKG

histoire

Version:

A fast story book powered by Vite

14 lines • 724 B
import type { VitestLike } from './vitest-errors.js'; /** * Detects the Vitest browser failures worth one automatic retry. * * They all mean the same thing: the dependency optimizer re-bundled mid-run and * reloaded the page, which kills the browser connection. Nothing is wrong with * the stories themselves, so the run is simply started again — the second run * finds a warm optimizer cache. * @param error The error that ended the run. * @param vitest The Vitest instance, whose unhandled errors are inspected too: * the browser crash is often only reported there. */ export declare function shouldRetryVitestBrowserRun(error: unknown, vitest?: VitestLike): boolean; //# sourceMappingURL=vitest-retry.d.ts.map