diff --git a/packages/ui/.storybook/main.ts b/packages/ui/.storybook/main.ts index 93cd70329..6010be9f3 100644 --- a/packages/ui/.storybook/main.ts +++ b/packages/ui/.storybook/main.ts @@ -4,11 +4,11 @@ import type { StorybookConfig } from '@storybook/sveltekit'; const config: StorybookConfig = { stories: ['../src/stories/**/*.mdx', '../src/stories/**/*.stories.@(js|jsx|mjs|ts|tsx|svelte)'], addons: [ - getAbsolutePath('@storybook/addon-links'), - getAbsolutePath('@storybook/addon-essentials'), - getAbsolutePath('storybook-dark-mode'), - getAbsolutePath('@storybook/experimental-addon-vitest'), - ], + getAbsolutePath('@storybook/addon-links'), + getAbsolutePath('@storybook/addon-essentials'), + getAbsolutePath('storybook-dark-mode'), + getAbsolutePath('@storybook/experimental-addon-test') + ], framework: { name: getAbsolutePath('@storybook/sveltekit'), options: {} diff --git a/packages/ui/package.json b/packages/ui/package.json index 02eae66e1..5a82ec019 100644 --- a/packages/ui/package.json +++ b/packages/ui/package.json @@ -31,7 +31,7 @@ "@storybook/addon-essentials": "^8.3.0", "@storybook/addon-links": "^8.3.0", "@storybook/blocks": "^8.3.0", - "@storybook/experimental-addon-vitest": "^8.3.0-beta.1", + "@storybook/experimental-addon-test": "^8.3.0", "@storybook/svelte": "^8.3.0", "@storybook/sveltekit": "^8.3.0", "@sveltejs/adapter-static": "catalog:svelte", diff --git a/packages/ui/vitest.workspace.ts b/packages/ui/vitest.workspace.ts index 7c01ce5a9..3ac819a51 100644 --- a/packages/ui/vitest.workspace.ts +++ b/packages/ui/vitest.workspace.ts @@ -1,24 +1,21 @@ import { defineWorkspace } from 'vitest/config'; -import { storybookTest } from '@storybook/experimental-addon-vitest/plugin'; -import { storybookSveltekitPlugin } from '@storybook/sveltekit/vite' +import { storybookTest } from '@storybook/experimental-addon-test/vitest-plugin'; +import { storybookSveltekitPlugin } from '@storybook/sveltekit/vite-plugin'; export default defineWorkspace([ - 'vite.config.ts', - { - extends: 'vite.config.ts', - plugins: [ - storybookTest({ storybookScript: 'pnpm storybook' }), - storybookSveltekitPlugin() - ], - test: { - browser: { - enabled: true, - headless: true, - name: 'chromium', - provider: 'playwright', - }, - include: ['**/*.stories.?(m)[jt]s?(x)'], - setupFiles: ['./.storybook/vitest.setup.ts'], - }, - }, + 'vite.config.ts', + { + extends: 'vite.config.ts', + plugins: [storybookTest({ storybookScript: 'pnpm storybook' }), storybookSveltekitPlugin()], + test: { + browser: { + enabled: true, + headless: true, + name: 'chromium', + provider: 'playwright' + }, + include: ['**/*.stories.?(m)[jt]s?(x)'], + setupFiles: ['./.storybook/vitest.setup.ts'] + } + } ]); diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index fc8df8ce6..38aa86eb1 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -350,9 +350,9 @@ importers: '@storybook/blocks': specifier: ^8.3.0 version: 8.3.3(react-dom@18.3.1(react@18.3.1))(react@18.3.1)(storybook@8.3.3) - '@storybook/experimental-addon-vitest': - specifier: ^8.3.0-beta.1 - version: 8.3.0-beta.1(@vitest/browser@2.0.5(playwright@1.46.1)(typescript@5.4.5)(vitest@2.0.5)(webdriverio@8.40.2))(storybook@8.3.3)(vitest@2.0.5(@types/node@22.3.0)(@vitest/browser@2.0.5)(@vitest/ui@2.0.5)(happy-dom@14.12.3)(jsdom@24.1.1)) + '@storybook/experimental-addon-test': + specifier: ^8.3.0 + version: 8.3.3(@vitest/browser@2.0.5(playwright@1.46.1)(typescript@5.4.5)(vitest@2.0.5)(webdriverio@8.40.2))(storybook@8.3.3)(vitest@2.0.5(@types/node@22.3.0)(@vitest/browser@2.0.5)(@vitest/ui@2.0.5)(happy-dom@14.12.3)(jsdom@24.1.1)) '@storybook/svelte': specifier: ^8.3.0 version: 8.3.3(storybook@8.3.3)(svelte@5.0.0-next.243) @@ -1551,11 +1551,11 @@ packages: '@storybook/csf@0.1.11': resolution: {integrity: sha512-dHYFQH3mA+EtnCkHXzicbLgsvzYjcDJ1JWsogbItZogkPHgSJM/Wr71uMkcvw8v9mmCyP4NpXJuu6bPoVsOnzg==} - '@storybook/experimental-addon-vitest@8.3.0-beta.1': - resolution: {integrity: sha512-56E3pGJGgQ2peF47i0HBFvjXfc6zZeCo4xe2Bv1qk5R6C9HraW6IiNozhiZ9x3lDbu4yohs6NRFIPVNR0pFH1A==} + '@storybook/experimental-addon-test@8.3.3': + resolution: {integrity: sha512-YGGd2UDyy7Jxf3dEIkgQkl+HSl6mUFuiQPobQh492eGM+h1XwTzLofSINUXRx9FbkeUdFl2yj/ug9VMoeZQWBA==} peerDependencies: '@vitest/browser': ^2.0.0 - storybook: ^8.3.0-beta.1 + storybook: ^8.3.3 vitest: ^2.0.0 '@storybook/global@5.0.0': @@ -7379,7 +7379,7 @@ snapshots: dependencies: type-fest: 2.19.0 - '@storybook/experimental-addon-vitest@8.3.0-beta.1(@vitest/browser@2.0.5(playwright@1.46.1)(typescript@5.4.5)(vitest@2.0.5)(webdriverio@8.40.2))(storybook@8.3.3)(vitest@2.0.5(@types/node@22.3.0)(@vitest/browser@2.0.5)(@vitest/ui@2.0.5)(happy-dom@14.12.3)(jsdom@24.1.1))': + '@storybook/experimental-addon-test@8.3.3(@vitest/browser@2.0.5(playwright@1.46.1)(typescript@5.4.5)(vitest@2.0.5)(webdriverio@8.40.2))(storybook@8.3.3)(vitest@2.0.5(@types/node@22.3.0)(@vitest/browser@2.0.5)(@vitest/ui@2.0.5)(happy-dom@14.12.3)(jsdom@24.1.1))': dependencies: '@storybook/csf': 0.1.11 '@vitest/browser': 2.0.5(playwright@1.46.1)(typescript@5.4.5)(vitest@2.0.5)(webdriverio@8.40.2)