Skip to content

Commit 19bbf92

Browse files
committed
update Storybook to 9.0.0-rc.3, and other dependencies
1 parent 4ea1f69 commit 19bbf92

16 files changed

+275
-4294
lines changed

.storybook/main.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@ const config: StorybookConfig = {
2424
legacyTemplate: true,
2525
},
2626
},
27-
'@storybook/addon-essentials',
2827
'@chromatic-com/storybook',
29-
'@storybook/experimental-addon-test',
28+
'@storybook/addon-docs',
29+
'@storybook/addon-vitest',
3030
],
3131
};
3232

examples/Button.stories.svelte

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
<script module lang="ts">
2-
import { defineMeta, type StoryContext } from '@storybook/addon-svelte-csf';
3-
import { fn } from '@storybook/test';
2+
import { defineMeta } from '@storybook/addon-svelte-csf';
3+
import { fn } from 'storybook/test';
44
55
import Button from './components/Button.svelte';
6-
import type { ComponentProps } from 'svelte';
76
87
const onclickFn = fn().mockName('onclick');
98

examples/README.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Meta, Markdown } from '@storybook/blocks';
1+
import { Meta, Markdown } from '@storybook/addon-docs/blocks';
22
import README from '../README.md?raw';
33

44
<Meta title="README" />

examples/StoryImporter.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Meta, Canvas } from '@storybook/blocks';
1+
import { Meta, Canvas } from '@storybook/addon-docs/blocks';
22
import * as ExportNameStories from './ExportName.stories.svelte';
33

44
<Meta title="Examples/ExportName" name="MDX Docs" />

examples/Templating.stories.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<script module lang="ts">
22
import { defineMeta } from '@storybook/addon-svelte-csf';
3-
import { expect, within } from '@storybook/test';
3+
import { expect, within } from 'storybook/test';
44
55
/**
66
* Demonstration on the **different ways of setting a template** for `<Story />` components within one stories file.

package.json

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -63,17 +63,15 @@
6363
},
6464
"devDependencies": {
6565
"@auto-it/released": "^11.1.6",
66-
"@chromatic-com/storybook": "^4.0.0-0",
66+
"@chromatic-com/storybook": "^4.0.0-next.6",
6767
"@eslint/compat": "^1.2.8",
6868
"@eslint/js": "^9.25.0",
69-
"@storybook/addon-actions": "^9.0.0-0",
70-
"@storybook/addon-essentials": "^9.0.0-0",
71-
"@storybook/experimental-addon-test": "^9.0.0-0",
72-
"@storybook/svelte": "^9.0.0-0",
73-
"@storybook/svelte-vite": "^9.0.0-0",
74-
"@storybook/test": "^9.0.0-0",
69+
"@storybook/addon-vitest": "^9.0.0-rc.3",
70+
"@storybook/addon-docs": "^9.0.0-rc.3",
71+
"@storybook/svelte": "^9.0.0-rc.3",
72+
"@storybook/svelte-vite": "^9.0.0-rc.3",
7573
"@sveltejs/package": "^2.3.7",
76-
"@sveltejs/vite-plugin-svelte": "4.0.0",
74+
"@sveltejs/vite-plugin-svelte": "^5.0.3",
7775
"@tsconfig/svelte": "^5.0.4",
7876
"@types/estree": "^1.0.6",
7977
"@types/node": "^20.14.9",
@@ -92,7 +90,7 @@
9290
"prettier-plugin-svelte": "^3.2.5",
9391
"rimraf": "^5.0.7",
9492
"rollup": "^4.25.0",
95-
"storybook": "^9.0.0-0",
93+
"storybook": "^9.0.0-rc.3",
9694
"svelte": "^5.28.2",
9795
"svelte-check": "^4.1.7",
9896
"tslib": "^2.6.3",
@@ -102,7 +100,6 @@
102100
"typescript-svelte-plugin": "^0.3.42",
103101
"vite": "^6.3.5",
104102
"vite-plugin-inspect": "^0.8.7",
105-
"vite-plugin-virtual": "^0.3.0",
106103
"vitest": "^3.1.3"
107104
},
108105
"peerDependencies": {

pnpm-lock.yaml

Lines changed: 247 additions & 4260 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/runtime/emit-code.test.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
import { describe, expect, it } from 'vitest';
2-
import { fn } from '@storybook/test';
1+
import { describe, expect, it, vi } from 'vitest';
32
import dedent from 'dedent';
43

54
import { generateCodeToEmit } from './emit-code.js';
@@ -129,8 +128,8 @@ describe('Emit Code', () => {
129128
someArray: ['first', 'second'],
130129
someUnnamedFn: () => {},
131130
someNamedFn: function namedFunc() {},
132-
someUnnamedMockFn: fn(),
133-
someNamedMockFn: fn().mockName('namedMockFn'),
131+
someUnnamedMockFn: vi.fn(),
132+
someNamedMockFn: vi.fn().mockName('namedMockFn'),
134133
yes: 'yup',
135134
no: 'nope',
136135
text: 'some text',

tests/stories/Actions.stories.svelte

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
<script module>
2-
import { fn } from '@storybook/test';
2+
import { fn, expect, userEvent, within } from 'storybook/test';
33
import { defineMeta } from '@storybook/addon-svelte-csf';
4-
import { expect, userEvent, within } from '@storybook/test';
54
65
const { Story } = defineMeta({
76
title: 'Addons/Actions',

tests/stories/Decorators.stories.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<script module>
22
import { defineMeta } from '@storybook/addon-svelte-csf';
3-
import { expect, userEvent, within } from '@storybook/test';
3+
import { expect, within } from 'storybook/test';
44
55
import Text from './Text.svelte';
66
import BorderDecorator from './BorderDecorator.svelte';

0 commit comments

Comments
 (0)