TLDR Web Dev · ARTICLES & TUTORIALS

COMPONENT TESTING IN STORYBOOK

storybook.js.org11 min read

Summary from the TLDR Web Dev newsletter

Component testing may be the future of UI testing. While end-to-end (E2E) tests provide the highest fidelity, they are often impractical for comprehensive UI coverage due to slow execution, difficulty in managing complex states, and setup overhead. Component tests, on the other hand, offer a balance between unit tests and E2E tests, allowing for both faster and more reliable testing. Component tests are not necessarily a replacement for E2E tests, but rather a complement.