UNPKG

storybook-addon-vis-v9-fix-test

Version:
17 lines (15 loc) 447 B
/** * Return type is `any` to support different Vitest and Vite versions. */ import type { Omit } from 'type-plus' import { type ComparisonMethod, type VisOptions, vis } from 'vitest-plugin-vis/config' import { NAME } from '../shared/contants.ts' export function storybookVis<M extends ComparisonMethod>(options?: Omit<VisOptions<M>, 'preset'> | undefined): any { return { ...vis({ ...options, preset: 'none', }), name: NAME, } }