Skip to content

Commit e4f4948

Browse files
committed
Install and configure - wip
1 parent 1df72ee commit e4f4948

File tree

3 files changed

+1774
-35
lines changed

3 files changed

+1774
-35
lines changed

site/.storybook/main.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@ module.exports = {
1111
// SEE: https://storybook.js.org/docs/react/configure/overview#configure-story-loading
1212
stories: ["../src/**/*.stories.tsx"],
1313

14+
features: {
15+
interactionsDebugger: true, // 👈 Enable playback controls
16+
},
17+
1418
// addons are official and community plugins to extend Storybook.
1519
//
1620
// SEE: https://storybook.js.org/addons
@@ -22,6 +26,7 @@ module.exports = {
2226
actions: false,
2327
},
2428
},
29+
'@storybook/addon-interactions',
2530
],
2631

2732
// SEE: https://storybook.js.org/docs/react/configure/babel

site/package.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
"playwright:test": "playwright test --config=e2e/playwright.config.ts",
2121
"storybook": "start-storybook -p 6006",
2222
"storybook:build": "build-storybook",
23+
"storybook:test": "test-storybook",
2324
"test": "jest --selectProjects test",
2425
"test:coverage": "jest --selectProjects test --collectCoverage",
2526
"test:watch": "jest --selectProjects test --watch",
@@ -85,8 +86,12 @@
8586
"@playwright/test": "1.29.2",
8687
"@storybook/addon-actions": "6.5.9",
8788
"@storybook/addon-essentials": "6.5.12",
89+
"@storybook/addon-interactions": "^6.5.15",
8890
"@storybook/addon-links": "6.5.9",
91+
"@storybook/jest": "^0.0.10",
8992
"@storybook/react": "6.5.12",
93+
"@storybook/test-runner": "^0.9.2",
94+
"@storybook/testing-library": "^0.0.13",
9095
"@testing-library/jest-dom": "5.16.4",
9196
"@testing-library/react": "13.4.0",
9297
"@testing-library/user-event": "14.4.3",

0 commit comments

Comments
 (0)