diff --git a/code/.storybook/vitest.config.ts b/code/.storybook/vitest.config.ts index 41a4bf188da..22f3d5f620c 100644 --- a/code/.storybook/vitest.config.ts +++ b/code/.storybook/vitest.config.ts @@ -22,7 +22,7 @@ export default mergeConfig( // @ts-expect-error added this because of testNamePattern below defineProject({ plugins: [ - import('@storybook/experimental-addon-test/vitest-plugin').then(({ storybookTest }) => + import('@storybook/addon-test/vitest-plugin').then(({ storybookTest }) => storybookTest({ configDir: __dirname, tags: { diff --git a/code/addons/test/project.json b/code/addons/test/project.json index c23ed17fc57..96314d1efc9 100644 --- a/code/addons/test/project.json +++ b/code/addons/test/project.json @@ -1,5 +1,5 @@ { - "name": "experimental-addon-test", + "name": "addon-test", "$schema": "../../node_modules/nx/schemas/project-schema.json", "projectType": "library", "targets": { diff --git a/code/builders/builder-vite/src/optimizeDeps.ts b/code/builders/builder-vite/src/optimizeDeps.ts index 3b3025b2932..f14f892d26d 100644 --- a/code/builders/builder-vite/src/optimizeDeps.ts +++ b/code/builders/builder-vite/src/optimizeDeps.ts @@ -36,7 +36,7 @@ const INCLUDE_CANDIDATES = [ '@storybook/addon-viewport/preview', '@storybook/blocks', '@storybook/components', - '@storybook/experimental-addon-test/preview', + '@storybook/addon-test/preview', '@storybook/experimental-nextjs-vite/dist/preview.mjs', '@storybook/html', '@storybook/html/dist/entry-preview-docs.mjs', diff --git a/code/core/src/common/versions.ts b/code/core/src/common/versions.ts index 9536bd62a2f..905c257eb58 100644 --- a/code/core/src/common/versions.ts +++ b/code/core/src/common/versions.ts @@ -15,7 +15,7 @@ export default { '@storybook/addon-onboarding': '9.0.0-alpha.0', '@storybook/addon-outline': '9.0.0-alpha.0', '@storybook/addon-storysource': '9.0.0-alpha.0', - '@storybook/experimental-addon-test': '9.0.0-alpha.0', + '@storybook/addon-test': '9.0.0-alpha.0', '@storybook/addon-themes': '9.0.0-alpha.0', '@storybook/addon-toolbars': '9.0.0-alpha.0', '@storybook/addon-viewport': '9.0.0-alpha.0', diff --git a/code/core/src/csf-tools/vitest-plugin/transformer.ts b/code/core/src/csf-tools/vitest-plugin/transformer.ts index c424914434c..53f2a3aa853 100644 --- a/code/core/src/csf-tools/vitest-plugin/transformer.ts +++ b/code/core/src/csf-tools/vitest-plugin/transformer.ts @@ -267,7 +267,7 @@ export async function vitestTransform({ ), t.importDeclaration( [t.importSpecifier(testStoryId, t.identifier('testStory'))], - t.stringLiteral('@storybook/experimental-addon-test/internal/test-utils') + t.stringLiteral('@storybook/addon-test/internal/test-utils') ), ]; diff --git a/code/lib/cli-storybook/src/automigrate/fixes/addon-a11y-addon-test.ts b/code/lib/cli-storybook/src/automigrate/fixes/addon-a11y-addon-test.ts index b8d3d4de455..41d58bc46a7 100644 --- a/code/lib/cli-storybook/src/automigrate/fixes/addon-a11y-addon-test.ts +++ b/code/lib/cli-storybook/src/automigrate/fixes/addon-a11y-addon-test.ts @@ -37,7 +37,7 @@ interface AddonA11yAddonTestOptions { } /** - * If addon-a11y and experimental-addon-test are already installed, we need to update + * If addon-a11y and addon-test are already installed, we need to update * * - `.storybook/vitest.setup.` to set up project annotations from addon-a11y. * - `.storybook/preview.` to set up tags. diff --git a/scripts/create-nx-sandbox-projects.ts b/scripts/create-nx-sandbox-projects.ts index 60dd75628d3..e338d0022e3 100644 --- a/scripts/create-nx-sandbox-projects.ts +++ b/scripts/create-nx-sandbox-projects.ts @@ -15,7 +15,7 @@ const projectJson = (name: string, framework: string, tags: string[]) => ({ 'test', 'essentials', 'interactions', - 'experimental-addon-test', + 'addon-test', 'links', 'onboarding', 'blocks', diff --git a/scripts/tasks/sandbox.ts b/scripts/tasks/sandbox.ts index 850522e2fb4..465d75b54a3 100644 --- a/scripts/tasks/sandbox.ts +++ b/scripts/tasks/sandbox.ts @@ -94,11 +94,7 @@ export const sandbox: Task = { // extraDeps.push('@testing-library/angular', '@analogjs/vitest-angular'); // } - options.addon = [ - ...options.addon, - '@storybook/experimental-addon-test', - '@storybook/addon-a11y', - ]; + options.addon = [...options.addon, '@storybook/addon-test', '@storybook/addon-a11y']; } let startTime = now(); diff --git a/test-storybooks/portable-stories-kitchen-sink/react/.storybook/main.ts b/test-storybooks/portable-stories-kitchen-sink/react/.storybook/main.ts index 4d183a736ed..995c7ce48c0 100644 --- a/test-storybooks/portable-stories-kitchen-sink/react/.storybook/main.ts +++ b/test-storybooks/portable-stories-kitchen-sink/react/.storybook/main.ts @@ -5,7 +5,7 @@ const config: StorybookConfig = { stories: ["../stories/**/*.stories.@(js|jsx|mjs|ts|tsx)"], addons: [ "@storybook/addon-controls", - "@storybook/experimental-addon-test", + "@storybook/addon-test", "@storybook/addon-a11y", ], framework: { diff --git a/test-storybooks/portable-stories-kitchen-sink/react/vitest.workspace.ts b/test-storybooks/portable-stories-kitchen-sink/react/vitest.workspace.ts index 96bd3394aa1..7a415185d8a 100644 --- a/test-storybooks/portable-stories-kitchen-sink/react/vitest.workspace.ts +++ b/test-storybooks/portable-stories-kitchen-sink/react/vitest.workspace.ts @@ -1,5 +1,5 @@ import { defineWorkspace } from "vitest/config"; -import { storybookTest } from "@storybook/experimental-addon-test/vitest-plugin"; +import { storybookTest } from "@storybook/addon-test/vitest-plugin"; export default defineWorkspace([ {