Member-only story
Leverage On Redux To Execute Your Tests 100x Times Faster
How separating the logic from the view can accelerate your test speed, test quality, and productivity.

In the previous article, I showed a technique for writing React components in a way that could be tested up to 100 times faster without losing accuracy. But it turns out that the same can also be achieved with Redux, and no additional pattern is needed.
Running with React is unacceptable
One of the things I’ve seen that most affects the speed and quality of development is the ability to run tests quickly. I’ve discussed this in many previous articles, but it’s not just coming from me; studies like Accelerate corroborate this perception.
And the thing is, the faster the tests run, the faster you get feedback, and the more opportunities there are to improve the code and product quality. And reaching a critical point, we can manage to enter a virtuous cycle.
The problem, despite not seeming so, is that testing with React is too slow.
In the previous article, after running the tests, I discovered that executing with React was about 100 times slower. That’s too much, and I wasn’t expecting it! And this time, while preparing this…