Skip to content

Commit f9baae5

Browse files
committed
Update storybook from v9.0.0-rc.2 to v10.1.11
1 parent 1d4e2e7 commit f9baae5

4 files changed

Lines changed: 1459 additions & 1041 deletions

File tree

.storybook/preview.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,13 @@ const preview: Preview = {
1212
date: /Date$/i,
1313
},
1414
},
15+
16+
a11y: {
17+
// 'todo' - show a11y violations in the test UI only
18+
// 'error' - fail CI on a11y violations
19+
// 'off' - skip a11y checks entirely
20+
test: 'todo',
21+
},
1522
},
1623
decorators: [
1724
withThemeByClassName({

.storybook/vitest.setup.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
1+
import * as a11yAddonAnnotations from "@storybook/addon-a11y/preview";
12
import { beforeAll } from 'vitest'
23
import { setProjectAnnotations } from '@storybook/react-vite'
34
import * as projectAnnotations from './preview'
45

56
// This is an important step to apply the right configuration when testing your stories.
67
// More info at: https://storybook.js.org/docs/api/portable-stories/portable-stories-vitest#setprojectannotations
7-
const project = setProjectAnnotations([projectAnnotations])
8+
const project = setProjectAnnotations([a11yAddonAnnotations, projectAnnotations])
89

910
beforeAll(project.beforeAll)

package.json

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,13 @@
2222
"packageManager": "yarn@1.22.22",
2323
"devDependencies": {
2424
"@eslint/js": "^9.26.0",
25-
"@storybook/addon-a11y": "^9.0.0-rc.2",
26-
"@storybook/addon-designs": "^10.0.0",
27-
"@storybook/addon-docs": "^9.0.0-rc.2",
28-
"@storybook/addon-themes": "^9.0.0-rc.2",
29-
"@storybook/addon-vitest": "9.0.0-rc.2",
30-
"@storybook/react-vite": "^9.0.0-rc.2",
31-
"@storybook/test-runner": "^0.22.0",
25+
"@storybook/addon-a11y": "^10.1.11",
26+
"@storybook/addon-designs": "^11.1.1",
27+
"@storybook/addon-docs": "^10.1.11",
28+
"@storybook/addon-themes": "^10.1.11",
29+
"@storybook/addon-vitest": "10.1.11",
30+
"@storybook/react-vite": "^10.1.11",
31+
"@storybook/test-runner": "^0.24.2",
3232
"@types/node": "^22.15.3",
3333
"@types/react": "^18.2.0",
3434
"@vitejs/plugin-react": "^4.4.1",
@@ -37,13 +37,13 @@
3737
"eslint": "^9.26.0",
3838
"eslint-plugin-react-hooks": "^5.2.0",
3939
"eslint-plugin-react-refresh": "^0.4.20",
40-
"eslint-plugin-storybook": "^9.0.0-rc.2",
40+
"eslint-plugin-storybook": "^10.1.11",
4141
"globals": "^16.0.0",
4242
"markdownlint-cli": "^0.45.0",
4343
"playwright": "^1.56.1",
4444
"prettier": "^3.5.3",
4545
"shadcn": "2.5.0",
46-
"storybook": "^9.0.0-rc.2",
46+
"storybook": "^10.1.11",
4747
"typescript": "~5.7.2",
4848
"typescript-eslint": "^8.31.1",
4949
"vite": "^6.3.1",

0 commit comments

Comments
 (0)