UNPKG

histoire

Version:

A fast story book powered by Vite

26 lines • 1.29 kB
import type { Plugin as VitePlugin } from 'vite'; import type { Context } from '../context.js'; import type { VitestBrowserRuntimeConfigResult } from './index.js'; export interface HistoireBrowserRunConfigOptions { /** * True for a story collection run, false for a test run. The two differ only * in the module the specs import, the optimizer strategy and the * `HST_COLLECT` flag baked into the bundle. */ collecting: boolean; /** Definition discovery keeps test runtime flags but uses bounded browser work. */ definitions?: boolean; /** Generated specs for metadata collection. Test runs scan stable story roots. */ entries: string[]; /** Extra Vite plugins (the collection results channel). */ plugins?: VitePlugin[]; /** Private stable catalog roots do not expand mounted story or spec admission. */ collectionOptimizerEntries?: string[]; } /** * Builds the Vite + Vitest config of a Histoire browser run. * @param ctx The histoire context. * @param options Run configuration (see {@link HistoireBrowserRunConfigOptions}). */ export declare function getHistoireBrowserRunConfig(ctx: Context, options: HistoireBrowserRunConfigOptions): Promise<VitestBrowserRuntimeConfigResult>; //# sourceMappingURL=run-config.d.ts.map