In integration tests, we check different units, modules, or components of a software application as a combined entity. The purpose of integration testing is to test the interfaces between the modules and expose any issues that may occur when these components are combined and need to interact with each other. Here in this challenge, we’ll test the functionality of fetching the data from in-memory storage.
Below, you are provided with an initial code. Write an integration test that verifies if it’s possible to get all the museums from storage using an instance of the repository instead of a mocked one. Use the provided code snippets as a reference.
We have created a file named checkList.test.ts
inside the src/museums
directory.
Task 1
Add the necessary imports at the beginning of the file.
Get hands-on with 1200+ tech skills courses.