React integration testing tip: On your CI server, run your automated...


React integration testing tip: On your CI server, run your automated integration tests against your React *production* build.

Why?

React is MUCH faster in production build mode. Our Cypress tests run nearly twice as fast now! 🎉

What a rewarding day of DivOps! 🔥

#reactjs
Here's the stats with 49 Cypress automated integration tests, running against a mock API.

The mock API returns every request instantly. So browser rendering speed is the bottleneck. Thus, React prod build = much faster:

Dev build: 1 min, 46 seconds
Prod build: 59 seconds

View original on X