-
SummaryHello,
However, I want to run these accessibility tests as part of my Vitest test suite since that's where I run all my tests. While the Storybook Test Runner works independently, I can’t get it to run inside Vitest. The test-runner.ts hooks (setup, preVisit, postVisit) don’t seem to be triggered in the Vitest test. I was wondering if there's a way to do this? Any help or advice appreciated. Additional informationStorybook version: 8.4.7 Create a reproductionNo response |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hey there @eldursi! If you're using Vitest, you should try out our new testing integration, which is powered by Vitest. It also has an out of the box integration with the @storybook/addon-a11y package, providing you with automated a11y tests, both in Storybook and in Vitest. This is currently in Storybook 8.5, which is in beta and will be released to stable soon. Please check this for more context: |
Beta Was this translation helpful? Give feedback.
Hey there @eldursi!
If you're using Vitest, you should try out our new testing integration, which is powered by Vitest. It also has an out of the box integration with the @storybook/addon-a11y package, providing you with automated a11y tests, both in Storybook and in Vitest.
This is currently in Storybook 8.5, which is in beta and will be released to stable soon.
Please check this for more context:
https://storybook.js.org/docs/8.5/writing-tests/test-addon
https://storybook.js.org/docs/8.5/writing-tests/accessibility-testing#test-addon-integration