...

/

Testing the Application with the API Client

Testing the Application with the API Client

Learn how to test any application integrated with a client API.

We'll cover the following...

Previously, when we created our JavaScript client, we mentioned that one of the advantages of having it living in the API code base is that we could easily write tests for the client and the API to guarantee that they work well together. In this lesson, we’ll demonstrate how we can do this. For these tests, instead of using fetch and doing raw requests, we’ll use the API client we created.

When we provide an API client to our users, we have the responsibility of making sure it works flawlessly with our application. One of the ways to guarantee ...