From c5e9ec1a68a82959fa3dae0ed0ecae5047b4ae48 Mon Sep 17 00:00:00 2001 From: Pedro Sousa Date: Fri, 27 Sep 2024 14:08:52 +0200 Subject: [PATCH 1/2] fix: move workspace name prop to test (#1) Name should be in the test object and not the workspace directly --- docs/_snippets/vitest-plugin-vitest-workspace.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/_snippets/vitest-plugin-vitest-workspace.md b/docs/_snippets/vitest-plugin-vitest-workspace.md index 909815ddc47..6e65205545d 100644 --- a/docs/_snippets/vitest-plugin-vitest-workspace.md +++ b/docs/_snippets/vitest-plugin-vitest-workspace.md @@ -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: [ @@ -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 From 7e7beac5624c21b1ca4a58d9ae36d770d7139622 Mon Sep 17 00:00:00 2001 From: Pedro Sousa Date: Wed, 2 Oct 2024 08:47:29 +0200 Subject: [PATCH 2/2] docs: update test name in other frameworks --- docs/_snippets/vitest-plugin-vitest-workspace.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/_snippets/vitest-plugin-vitest-workspace.md b/docs/_snippets/vitest-plugin-vitest-workspace.md index 6e65205545d..1e2db2169e1 100644 --- a/docs/_snippets/vitest-plugin-vitest-workspace.md +++ b/docs/_snippets/vitest-plugin-vitest-workspace.md @@ -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: [ @@ -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 @@ -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: [ @@ -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