Skip to content

Commit a1474ea

Browse files
authored
Merge pull request #207 from PSDTools/storybook-9
Upgrade to Storybook 9
2 parents 2cd8ed4 + 228ab84 commit a1474ea

File tree

6 files changed

+564
-897
lines changed

6 files changed

+564
-897
lines changed
Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,6 @@
11
import * as a11yAddonAnnotations from "@storybook/addon-a11y/preview";
22
import { setProjectAnnotations } from "@storybook/sveltekit";
3-
import { beforeAll } from "vitest";
43

5-
import * as previewAnnotations from "./preview";
4+
import * as previewAnnotations from "./preview.ts";
65

7-
// This is an important step to apply the right configuration when testing your stories.
8-
// More info at: https://storybook.js.org/docs/api/portable-stories/portable-stories-vitest#setprojectannotations
9-
const project = setProjectAnnotations([
10-
a11yAddonAnnotations,
11-
previewAnnotations,
12-
]);
13-
14-
beforeAll(project.beforeAll);
6+
setProjectAnnotations([a11yAddonAnnotations, previewAnnotations]);

apps/petal-notes/package.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,9 @@
5858
"@tailwindcss/vite": "catalog:",
5959
"@total-typescript/ts-reset": "catalog:",
6060
"@types/react": "catalog:",
61-
"@types/react-dom": "catalog:",
6261
"@vitest/browser": "catalog:",
6362
"@vitest/coverage-v8": "catalog:",
63+
"@vitest/ui": "catalog:",
6464
"browserslist": "catalog:",
6565
"browserslist-to-esbuild": "catalog:",
6666
"chromatic": "catalog:",
@@ -69,8 +69,6 @@
6969
"jiti": "catalog:",
7070
"lightningcss": "catalog:",
7171
"playwright": "catalog:",
72-
"react": "catalog:",
73-
"react-dom": "catalog:",
7472
"storybook": "catalog:",
7573
"svelte": "catalog:",
7674
"svelte-check": "catalog:",

apps/petal-notes/src/stories/Configure.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Meta } from "@storybook/blocks";
1+
import { Meta } from "@storybook/addon-docs/blocks";
22

33
import Github from "./assets/github.svg";
44
import Discord from "./assets/discord.svg";

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
"version": "^10.6.4"
4040
}
4141
},
42-
"packageManager": "[email protected].2+sha512.a32540185b964ee30bb4e979e405adc6af59226b438ee4cc19f9e8773667a66d302f5bfee60a39d3cac69e35e4b96e708a71dd002b7e9359c4112a1722ac323f",
42+
"packageManager": "[email protected].3+sha512.467df2c586056165580ad6dfb54ceaad94c5a30f80893ebdec5a44c5aa73c205ae4a5bb9d5ed6bb84ea7c249ece786642bbb49d06a307df218d03da41c317417",
4343
"manypkg": {
4444
"workspaceProtocol": "require"
4545
}

0 commit comments

Comments
 (0)