HEX
Server: nginx/1.18.0
System: Linux test-ipsremont 5.4.0-214-generic #234-Ubuntu SMP Fri Mar 14 23:50:27 UTC 2025 x86_64
User: ips (1000)
PHP: 8.0.30
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Upload Files
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 };