Post

We used to have the following process for running Storybook tests in the CI: 1. Build storybook 2. Run a local web server and the storybook test runner concurrently 3. Merge the generated coverage with the unit test coverage from jest

The new approach integrated with vitest simplifies this drastically. Now we simply need to run vitest, that's it, even merging the coverage is handled automatically.

Lastly, this also makes running tests selectively much easier. `pnpm vitest --run "Button.stories.tsx"` now just works. This is a really big DX improvement for us and also allows coding agents to write and run component tests. Very impressed with the library.

No replies yet.