Skip to content

Commit f5bb36f

Browse files
committed
add experimental-addon-test
1 parent 06c81af commit f5bb36f

7 files changed

+661
-916
lines changed

.storybook/main.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ const config: StorybookConfig = {
2525
},
2626
},
2727
'@storybook/addon-essentials',
28-
'@storybook/addon-interactions',
28+
'@storybook/experimental-addon-test',
2929
],
3030
};
3131

.storybook/vitest.setup.ts

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
import { beforeAll } from 'vitest';
2+
import { setProjectAnnotations } from '@storybook/svelte';
3+
4+
// This is an important step to apply the right configuration when testing your stories.
5+
// More info at: https://storybook.js.org/docs/api/portable-stories/portable-stories-vitest#setprojectannotations
6+
const project = setProjectAnnotations([]);
7+
8+
beforeAll(project.beforeAll);

package.json

+15-8
Original file line numberDiff line numberDiff line change
@@ -63,31 +63,34 @@
6363
},
6464
"devDependencies": {
6565
"@auto-it/released": "^11.1.6",
66-
"@storybook/addon-actions": "^8.0.0",
67-
"@storybook/addon-essentials": "^8.0.0",
68-
"@storybook/addon-interactions": "^8.0.0",
66+
"@storybook/addon-actions": "8.5.0-beta.11",
67+
"@storybook/addon-essentials": "8.5.0-beta.11",
6968
"@storybook/eslint-config-storybook": "^4.0.0",
70-
"@storybook/preview-api": "^8.0.0",
71-
"@storybook/svelte": "^8.0.0",
72-
"@storybook/svelte-vite": "^8.0.0",
73-
"@storybook/test": "^8.0.0",
69+
"@storybook/experimental-addon-test": "^8.5.0-beta.11",
70+
"@storybook/preview-api": "8.5.0-beta.11",
71+
"@storybook/svelte": "8.5.0-beta.11",
72+
"@storybook/svelte-vite": "8.5.0-beta.11",
73+
"@storybook/test": "8.5.0-beta.11",
7474
"@sveltejs/package": "^2.3.7",
7575
"@sveltejs/vite-plugin-svelte": "4.0.0",
7676
"@tsconfig/svelte": "^5.0.4",
7777
"@types/estree": "^1.0.6",
7878
"@types/node": "^20.14.9",
79+
"@vitest/browser": "2.1.4",
80+
"@vitest/coverage-v8": "2.1.4",
7981
"@vitest/ui": "^2.1.4",
8082
"auto": "^11.1.6",
8183
"chromatic": "^11.16.1",
8284
"concurrently": "^8.2.2",
8385
"eslint": "^7.32.0",
8486
"eslint-plugin-storybook": "^0.8.0",
8587
"happy-dom": "^15.11.4",
88+
"playwright": "^1.49.1",
8689
"prettier": "^3.3.2",
8790
"prettier-plugin-svelte": "^3.2.5",
8891
"rimraf": "^5.0.7",
8992
"rollup": "^4.25.0",
90-
"storybook": "^8.0.0",
93+
"storybook": "8.5.0-beta.11",
9194
"svelte": "^5.0.0",
9295
"svelte-check": "^4.0.5",
9396
"tslib": "^2.6.3",
@@ -105,6 +108,10 @@
105108
"svelte": "^5.0.0",
106109
"vite": "^5.0.0 || ^6.0.0"
107110
},
111+
"resolutions": {
112+
"@storybook/docs-tools": "8.5.0-beta.11",
113+
"@storybook/types": "8.5.0-beta.11"
114+
},
108115
"packageManager": "[email protected]+sha512.cce0f9de9c5a7c95bef944169cc5dfe8741abfb145078c0d508b868056848a87c81e626246cb60967cbd7fd29a6c062ef73ff840d96b3c86c40ac92cf4a813ee",
109116
"publishConfig": {
110117
"access": "public"

0 commit comments

Comments
 (0)