UNPKG

histoire

Version:

A fast story book powered by Vite

23 lines • 1.22 kB
import type { Context } from '../context.js'; import type { GeneratedSpecFile, RunHistoireTestsOptions } from './types.js'; /** * Restricts the stories handed to the browser collection when the run targets * a single story. Collecting the whole project for a one-variant dev run is * both slow and fragile: any unrelated broken story would fail the collection. * @param ctx The histoire context. * @param options The run options carrying the optional story filter. */ export declare function getTargetStoryFiles(ctx: Context, options: RunHistoireTestsOptions): import("@histoire/shared").ServerStoryFile[]; /** * Keeps only the generated specs matching the run's explicit story/variant * filter. * @param specFiles Every generated spec of the run. * @param options The run options carrying the filters. */ export declare function selectSpecFiles(specFiles: GeneratedSpecFile[], options: RunHistoireTestsOptions): GeneratedSpecFile[]; /** * Formats warning when explicit filters produce no runnable story tests. * @param options The run options carrying the filters. */ export declare function formatNoMatchingTestsWarning(options: RunHistoireTestsOptions): string; //# sourceMappingURL=targeting.d.ts.map