Tag Archives: React

Test First React part 2: API calls and Mocks

This article demonstrates some more advanced test first React practices. Specifically, API calls and mocks.

Test First React part 1: setup and first tests

React is a great choice for writing test first client side Javascript. The test ecosystem is mature enough to enable test first development of complex components. This article shows how to build a React component test first and introduces supporting test libraries Jest and Enzyme. In the next article we’ll look at more advanced testing including API testing and module mocking.