Skip to content

Commit

Permalink
Merge pull request #29231 from pedrosousa13/next
Browse files Browse the repository at this point in the history
Docs: FIx Vitest Workspace snippet
(cherry picked from commit 5aaf034)
  • Loading branch information
jonniebigodes authored and storybook-bot committed Oct 2, 2024
1 parent 3cdfae0 commit a1db445
Showing 1 changed file with 3 additions and 3 deletions.
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 @@ -8,7 +8,6 @@ export default defineWorkspace([
// This is the path to your existing Vitest config file
'./vitest.config.ts',
{
name: 'storybook',
// This is the path to your existing Vite config file
extends: './vite.config.ts',
plugins: [
Expand All @@ -20,6 +19,7 @@ export default defineWorkspace([
// storybookNextjsPlugin(),
],
test: {
name: 'storybook',
// Glob pattern to find story files
include: ['src/**/*.stories.?(m)[jt]s?(x)'],
// Enable browser mode
Expand Down Expand Up @@ -51,7 +51,6 @@ export default defineWorkspace([
// This is the path to your existing Vitest config file
'./vitest.config.ts',
{
name: 'storybook',
// This is the path to your existing Vite config file
extends: './vite.config.ts',
plugins: [
Expand All @@ -63,6 +62,7 @@ export default defineWorkspace([
storybookVuePlugin(),
],
test: {
name: 'storybook',
// Glob pattern to find story files
include: ['src/**/*.stories.?(m)[jt]s?(x)'],
// Enable browser mode
Expand Down Expand Up @@ -95,7 +95,6 @@ export default defineWorkspace([
// This is the path to your existing Vitest config file
'./vitest.config.ts',
{
name: 'storybook',
// This is the path to your existing Vite config file
extends: './vite.config.ts',
plugins: [
Expand All @@ -107,6 +106,7 @@ export default defineWorkspace([
// storybookSveltekitPlugin(),
],
test: {
name: 'storybook',
// Glob pattern to find story files
include: ['src/**/*.stories.?(m)[jt]s?(x)'],
// Enable browser mode
Expand Down

0 comments on commit a1db445

Please sign in to comment.