Home / Companies / SingleStore / Blog / Post Details
Content Deep Dive

Our Journey From JSDOM and React Testing Library Toward Cypress Component Testing

Blog post from SingleStore

Post Details
Company
Date Published
Author
Mitchell Adair
Word Count
1,542
Company Posts That Month
5
Language
English
Hacker News Points
-
Post removed?
No
Summary

We have migrated from Jest and React Testing Library (RTL) to Cypress Component Testing (CCT) for UI integration tests at SingleStore. The main reasons for this migration were the flakiness of our previous integration tests, which were causing issues with debugging and performance. We found that RTL's JSDOM simulated rendering made it difficult to visually inspect test results, leading to slower test execution due to CSS not being considered in tests. Additionally, we experienced issues with Jest's slow startup times as more tests were added. The flakiness of our integration tests was mostly a mystery, but we identified improperly written tests and missing API mocks as common causes. We decided to move to CCT instead of fixing the underlying issues due to its familiarity and the fact that our end-to-end tests were already written with Cypress. Our experience with CCT has been very positive, with improved test realism, faster onboarding for new engineers, and better developer experience through Cypress's API. However, we still have some flakiness in our integration tests that we are investigating.

Trends Found in this Post
Trend Post Mentions Total Month Mentions Posts Companies MoM
Developer Experience 1 246 117 68 +7%
Use This Data

Use this post, company, and trend context to find content marketing opportunities, perform competitive analysis, or address product feature gaps via the Plushcap MCP server or the Plushcap API.