Writing an Integration Test
Understand how to create integration tests in Deno that verify the interaction between multiple components like controllers and repositories. This lesson guides you through writing tests that mimic real application behavior, helping ensure your modules work correctly together and catch integration issues early.
We'll cover the following...
We'll cover the following...
In this lesson, we’ll write more interesting tests. These are the tests that will teach us how to check the integration between the different modules of the application.
Integration test
Our first unit test, which we created previously, relied on a mocked instance of the repository to guarantee that our controller was working. That test adds great value when it comes to detecting bugs in MuseumController, but it isn’t worth much in terms of ...