Skip to content

Commit

Permalink
Add Storybook test runner (#45116)
Browse files Browse the repository at this point in the history
* Add Storybook test runner

* review

* lint
  • Loading branch information
bl-nero authored Aug 29, 2024
1 parent 1f3fd3e commit ce82959
Show file tree
Hide file tree
Showing 4 changed files with 851 additions and 7 deletions.
5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
"package-term": "pnpm --filter=@gravitational/teleterm package",
"storybook": "./web/scripts/run-storybook.sh",
"storybook-smoke-test": "storybook dev -p 9002 -c web/.storybook --ci --smoke-test",
"test-storybook": "NODE_TLS_REJECT_UNAUTHORIZED=0 test-storybook -c web/.storybook --url https://localhost:9002 --skipTags=skip-test --browsers=chromium",
"test": "jest",
"test-coverage": "jest --coverage && web/scripts/print-coverage-link.sh",
"test-update-snapshot": "pnpm run test --updateSnapshot",
Expand All @@ -29,10 +30,11 @@
"private": true,
"devDependencies": {
"@gravitational/build": "workspace:*",
"@storybook/components": "^8.2.9",
"@storybook/addon-toolbars": "^8.2.9",
"@storybook/components": "^8.2.9",
"@storybook/react": "^8.2.9",
"@storybook/react-vite": "^8.2.9",
"@storybook/test-runner": "^0.19.1",
"@testing-library/jest-dom": "^6.4.8",
"@testing-library/react": "^15.0.7",
"@testing-library/user-event": "^14.5.2",
Expand All @@ -48,6 +50,7 @@
"jsdom-testing-mocks": "^1.13.1",
"msw": "^2.3.5",
"msw-storybook-addon": "^2.0.3",
"playwright": "^1.46.0",
"prettier": "^3.3.3",
"react-select-event": "^5.5.1",
"storybook": "^8.2.9",
Expand Down
Loading

0 comments on commit ce82959

Please sign in to comment.