Isolate tests and run in parallel

Jest makes it easy to isolate your unit tests in a sandboxed environment. In other words, side-effects from running one test cannot impact the results of other tests. Each time a test run completes, the global environment is automatically reset for the next. Since tests are standalone and their execution order doesn't matter, Jest runs tests in parallel. This means that even if you have hundreds of unit tests you can run them frequently without the fear of having to wait.

Here's an illustration of how Jest runs tests in parallel, in their own isolated environment:

The best part is that Jest handles scaling ...

Get React 16 Tooling now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.