This article demonstrates some more advanced test first React practices. Specifically, API calls and mocks.
Stuart 'Stevie' Leitch on Software Development, Java Technologies, Security and Testing
This article demonstrates some more advanced test first React practices. Specifically, API calls and mocks.
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.