File: /var/www/design.system/node_modules/@storybook/experimental-addon-test/dist/index.d.ts
import * as core_dist_types from 'storybook/internal/types';
import { Plugin } from 'vitest/config';
type UserOptions = {
/**
* The directory where the Storybook configuration is located, relative to the vitest
* configuration file. If not provided, the plugin will use '.storybook' in the current working
* directory.
*
* @default '.storybook'
*/
configDir?: string;
/**
* Optional script to run Storybook. If provided, Vitest will start Storybook using this script
* when ran in watch mode.
*
* @default undefined
*/
storybookScript?: string;
/**
* The URL where Storybook is hosted. This is used to provide a link to the story in the test
* output on failures.
*
* @default 'http://localhost:6006'
*/
storybookUrl?: string;
/** Tags to include, exclude, or skip. These tags are defined as annotations in your story or meta. */
tags?: {
include?: string[];
exclude?: string[];
skip?: string[];
};
};
declare const storybookTest: (options?: UserOptions) => Promise<Plugin[]>;
interface TestParameters {
/**
* Test addon configuration
*
* @see https://storybook.js.org/docs/writing-tests/test-addon
*/
test: {
/** Ignore unhandled errors during test execution */
dangerouslyIgnoreUnhandledErrors?: boolean;
/** Whether to throw exceptions coming from the play function */
throwPlayFunctionExceptions?: boolean;
};
}
declare const _default: () => core_dist_types.ProjectAnnotations<core_dist_types.Renderer>;
declare module '@storybook/experimental-addon-test/vitest-plugin' {
const storybookTest: typeof storybookTest;
}
export { TestParameters, _default as default };