December 2018
Intermediate to advanced
642 pages
15h 5m
English
Running the tests is simple: you just need to use npm test, in the same way that we did for Node, as follows:

Jest is set up to automatically watch for changes, so if you modify any file, testing will proceed again – the q command will stop the watch mode, and you'll have to use a to run all tests, or p and t to filter some tests to run.
We have now seen how to test components. However, some extra work is needed, because in our examples, we haven't dealt with any Redux-related matters, such as dispatching actions or thunks; ...
Read now
Unlock full access