Skip to content

Commit

Permalink
Merge pull request #29365 from k35o/docs-storybookNextjsPlugin2storyb…
Browse files Browse the repository at this point in the history
…ookNextJsPlugin

Docs: storybookNextjsPlugin to storybookNextJsPlugin
  • Loading branch information
valentinpalkovic authored Oct 22, 2024
2 parents 52a345b + bc5a1d3 commit 59fac37
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions docs/_snippets/vitest-plugin-vitest-config.md
Original file line number Diff line number Diff line change
Expand Up @@ -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';

Expand All @@ -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
Expand Down
6 changes: 3 additions & 3 deletions docs/_snippets/vitest-plugin-vitest-workspace.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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',
Expand Down Expand Up @@ -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';

Expand Down
6 changes: 3 additions & 3 deletions docs/writing-tests/vitest-plugin.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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';

Expand All @@ -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
],
// ...
})
Expand Down Expand Up @@ -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

</If>
</If>

0 comments on commit 59fac37

Please sign in to comment.