Testing the Application with the API Client
Explore how to write integration tests in Deno by using an API client to test application features like login and registration, ensuring seamless functionality between client and API. This lesson helps you create robust test suites to maintain confidence in your codebase.
We'll cover the following...
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 ...