Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
jonmumm committed Nov 9, 2024
1 parent 7af4b4d commit 5917a92
Show file tree
Hide file tree
Showing 4 changed files with 248 additions and 7 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/storybook-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
- name: Install dependencies
run: |
npm install
npm install @rollup/rollup-linux-x64-gnu --save-optional
npm install @storybook/addon-coverage --save-dev
- name: Install Playwright browsers
run: npx playwright install --with-deps
Expand All @@ -27,10 +27,12 @@ jobs:
run: |
npx concurrently -k -s first -n "SB,TEST" -c "magenta,blue" \
"npx http-server storybook-static --port 6006 --silent" \
"npx wait-on tcp:127.0.0.1:6006 && npm run test-storybook"
"npx wait-on tcp:127.0.0.1:6006 && npm run test-storybook -- --coverage --maxWorkers=2"
- name: Run Storybook tests with coverage
run: npm run test-storybook -- --coverage
- name: Generate Coverage Report
run: |
npx nyc report --reporter=lcov -t coverage/storybook --report-dir coverage/storybook-lcov
npx nyc report --reporter=text -t coverage/storybook
- name: Upload coverage reports
uses: actions/upload-artifact@v4
Expand Down
3 changes: 2 additions & 1 deletion .storybook/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ const config: StorybookConfig = {
"@storybook/addon-essentials",
"@storybook/addon-interactions",
"@storybook/addon-styling",
"../addons/actor-kit-panel/preset.ts"
"../addons/actor-kit-panel/preset.ts",
'@storybook/addon-coverage'
],
framework: {
name: "@storybook/react-vite",
Expand Down
237 changes: 237 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
"class-variance-authority": "^0.7.0",
"clsx": "^2.1.1",
"framer-motion": "^11.11.11",
"glob": "^7.2.3",
"isbot": "^4",
"lucide-react": "^0.453.0",
"nanoid": "^5.0.7",
Expand All @@ -51,12 +52,12 @@
"vaul": "^1.1.1",
"wrangler": "^3.80.2",
"xstate": "^5.18.2",
"zod": "^3.23.8",
"glob": "^7.2.3"
"zod": "^3.23.8"
},
"devDependencies": {
"@chromatic-com/storybook": "^3.2.2",
"@remix-run/testing": "^2.13.1",
"@storybook/addon-coverage": "^1.0.4",
"@storybook/addon-essentials": "^8.4.2",
"@storybook/addon-interactions": "^8.4.2",
"@storybook/addon-links": "^8.4.2",
Expand Down

0 comments on commit 5917a92

Please sign in to comment.