Skip to content

Commit 78de66a

Browse files
authored
feat: ✨ add a11y storybook addon (#97)
1 parent a1817dc commit 78de66a

File tree

6 files changed

+29
-24
lines changed

6 files changed

+29
-24
lines changed

.github/actions/install/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ runs:
77
- name: 🏗 Setup bun
88
uses: oven-sh/setup-bun@v1
99
with:
10-
bun-version: 1.1.12
10+
bun-version: 1.1.14
1111

1212
- name: 🏗 Setup bun cache
1313
uses: actions/cache@v4

.storybook/main.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ const config = {
77
"@storybook/addon-essentials",
88
"@storybook/addon-interactions",
99
"@storybook/addon-themes",
10+
"@storybook/addon-a11y",
1011
],
1112
framework: {
1213
name: "@storybook/react-vite",

bun.lockb

6.82 KB
Binary file not shown.

package.json

Lines changed: 24 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -23,58 +23,59 @@
2323
},
2424
"prettier": "@jimmy.codes/prettier-config",
2525
"dependencies": {
26-
"@tanstack/react-query": "5.40.0",
27-
"@tanstack/react-router": "1.34.9",
26+
"@tanstack/react-query": "5.45.1",
27+
"@tanstack/react-router": "1.39.4",
2828
"clsx": "2.1.1",
2929
"react": "18.3.1",
3030
"react-dom": "18.3.1",
3131
"tailwind-merge": "2.3.0"
3232
},
3333
"devDependencies": {
34-
"@iconify-json/logos": "1.1.42",
35-
"@iconify-json/lucide": "1.1.189",
34+
"@iconify-json/logos": "1.1.43",
35+
"@iconify-json/lucide": "1.1.193",
3636
"@iconify/tailwind": "1.1.1",
3737
"@jimmy.codes/eslint-config": "1.9.0",
3838
"@jimmy.codes/prettier-config": "1.1.0",
3939
"@playwright/test": "1.44.1",
40-
"@storybook/addon-essentials": "8.1.5",
41-
"@storybook/addon-interactions": "8.1.5",
42-
"@storybook/addon-links": "8.1.5",
43-
"@storybook/addon-themes": "8.1.5",
44-
"@storybook/blocks": "8.1.5",
45-
"@storybook/react": "8.1.5",
46-
"@storybook/react-vite": "8.1.5",
47-
"@storybook/test": "8.1.5",
40+
"@storybook/addon-a11y": "8.1.10",
41+
"@storybook/addon-essentials": "8.1.10",
42+
"@storybook/addon-interactions": "8.1.10",
43+
"@storybook/addon-links": "8.1.10",
44+
"@storybook/addon-themes": "8.1.10",
45+
"@storybook/blocks": "8.1.10",
46+
"@storybook/react": "8.1.10",
47+
"@storybook/react-vite": "8.1.10",
48+
"@storybook/test": "8.1.10",
4849
"@tailwindcss/typography": "0.5.13",
49-
"@tanstack/react-query-devtools": "5.40.0",
50-
"@tanstack/router-devtools": "1.34.9",
51-
"@tanstack/router-vite-plugin": "1.34.8",
50+
"@tanstack/react-query-devtools": "5.45.1",
51+
"@tanstack/router-devtools": "1.39.4",
52+
"@tanstack/router-vite-plugin": "1.39.5",
5253
"@testing-library/dom": "10.1.0",
53-
"@testing-library/jest-dom": "6.4.5",
54+
"@testing-library/jest-dom": "6.4.6",
5455
"@testing-library/react": "16.0.0",
5556
"@testing-library/user-event": "14.5.2",
5657
"@total-typescript/ts-reset": "0.5.1",
57-
"@types/bun": "1.1.3",
58+
"@types/bun": "1.1.4",
5859
"@types/react": "18.3.3",
5960
"@types/react-dom": "18.3.0",
6061
"@vitejs/plugin-react-swc": "3.7.0",
6162
"@vitest/coverage-v8": "1.6.0",
6263
"@vitest/ui": "1.6.0",
6364
"autoprefixer": "10.4.19",
64-
"daisyui": "4.11.1",
65+
"daisyui": "4.12.2",
6566
"eslint": "8.57.0",
6667
"eslint-plugin-storybook": "0.8.0",
6768
"gitzy": "5.4.0",
6869
"happy-dom": "14.12.0",
6970
"is-ci": "3.0.1",
70-
"lefthook": "1.6.15",
71+
"lefthook": "1.6.16",
7172
"msw": "2.3.1",
7273
"postcss": "8.4.38",
73-
"prettier": "3.3.0",
74-
"storybook": "8.1.5",
75-
"tailwindcss": "3.4.3",
74+
"prettier": "3.3.2",
75+
"storybook": "8.1.10",
76+
"tailwindcss": "3.4.4",
7677
"typescript": "5.4.5",
77-
"vite": "5.2.12",
78+
"vite": "5.3.1",
7879
"vite-tsconfig-paths": "4.3.2",
7980
"vitest": "1.6.0"
8081
}

src/testing/setup.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,11 @@ import { server } from "./mocks/server";
55
beforeAll(() => {
66
server.listen({ onUnhandledRequest: "warn" });
77
});
8+
89
afterEach(() => {
910
server.resetHandlers();
1011
});
12+
1113
afterAll(() => {
1214
server.close();
1315
});

src/testing/utils.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,4 +68,5 @@ const customRender = (
6868
};
6969

7070
export { renderHook, screen, within } from "@testing-library/react";
71+
7172
export { customRender as render };

0 commit comments

Comments
 (0)