November 2018
Beginner
502 pages
10h 22m
English
We are going to move to the project we created in Chapter 9, Interacting with Restful APIs. We are going to add a test that verifies the posts are rendered on the page correctly. We'll mock the JSONPlaceholder REST API so we are in control of the data that is returned, and so that our test will execute nicely and quickly:
npm install axios-mock-adapter --save-dev
npm install react-testing-library --save-dev
Read now
Unlock full access