diff --git a/docs/_snippets/vitest-plugin-vitest-config.md b/docs/_snippets/vitest-plugin-vitest-config.md index 0ddc6054f9df..55a5670b312a 100644 --- a/docs/_snippets/vitest-plugin-vitest-config.md +++ b/docs/_snippets/vitest-plugin-vitest-config.md @@ -2,7 +2,7 @@ import { defineConfig, mergeConfig } from 'vitest/config'; import { storybookTest } from '@storybook/experimental-addon-test/vitest-plugin'; // 👇 If you're using Next.js, apply this framework plugin as well -// import { storybookNextjsPlugin } from '@storybook/experimental-nextjs-vite/vite-plugin'; +// import { storybookNextJsPlugin } from '@storybook/experimental-nextjs-vite/vite-plugin'; import viteConfig from './vite.config'; @@ -15,7 +15,7 @@ export default mergeConfig( // The --ci flag will skip prompts and not open a browser storybookScript: 'yarn storybook --ci', }), - // storybookNextjsPlugin(), + // storybookNextJsPlugin(), ], test: { // Glob pattern to find story files diff --git a/docs/_snippets/vitest-plugin-vitest-workspace.md b/docs/_snippets/vitest-plugin-vitest-workspace.md index 1e2db2169e16..6d3b696b5ea5 100644 --- a/docs/_snippets/vitest-plugin-vitest-workspace.md +++ b/docs/_snippets/vitest-plugin-vitest-workspace.md @@ -2,7 +2,7 @@ import { defineWorkspace } from 'vitest/config'; import { storybookTest } from '@storybook/experimental-addon-test/vitest-plugin'; // 👇 If you're using Next.js, apply this framework plugin as well -// import { storybookNextjsPlugin } from '@storybook/experimental-nextjs-vite/vite-plugin'; +// import { storybookNextJsPlugin } from '@storybook/experimental-nextjs-vite/vite-plugin'; export default defineWorkspace([ // This is the path to your existing Vitest config file @@ -16,7 +16,7 @@ export default defineWorkspace([ // The --ci flag will skip prompts and not open a browser storybookScript: 'yarn storybook --ci', }), - // storybookNextjsPlugin(), + // storybookNextJsPlugin(), ], test: { name: 'storybook', @@ -87,7 +87,7 @@ export default defineWorkspace([ import { defineConfig, mergeConfig } from 'vitest/config'; import { storybookTest } from '@storybook/experimental-addon-test/vitest-plugin'; // 👇 If you're using Sveltekit, apply this framework plugin as well -// import { storybookNextjsPlugin } from '@storybook/sveltekit/vite-plugin'; +// import { storybookSveltekitPlugin } from '@storybook/sveltekit/vite-plugin'; import viteConfig from './vite.config'; diff --git a/docs/writing-tests/vitest-plugin.mdx b/docs/writing-tests/vitest-plugin.mdx index 1a0e4b9708b2..adc4290ba5c4 100644 --- a/docs/writing-tests/vitest-plugin.mdx +++ b/docs/writing-tests/vitest-plugin.mdx @@ -79,7 +79,7 @@ Some Storybook frameworks require additional setup to enable the framework's fea ```js title="vitest.config.ts" import { defineConfig, mergeConfig } from 'vitest/config'; import { storybookTest } from '@storybook/experimental-addon-test/vitest-plugin'; - import { storybookNextjsPlugin } from '@storybook/experimental-nextjs-vite/vite-plugin'; + import { storybookNextJsPlugin } from '@storybook/experimental-nextjs-vite/vite-plugin'; import viteConfig from './vite.config'; @@ -88,7 +88,7 @@ Some Storybook frameworks require additional setup to enable the framework's fea defineConfig({ plugins: [ storybookTest(), - storybookNextjsPlugin(), // 👈 Apply the framework plugin here + storybookNextJsPlugin(), // 👈 Apply the framework plugin here ], // ... }) @@ -461,4 +461,4 @@ Default: - **`exclude`**: Stories with these tags will not be tested, and will not be counted in the test results - **`skip`**: Stories with these tags will not be tested, and will be counted in the test results - \ No newline at end of file +