mock-inspect: A simple way to achieve contract testing
This article is part of a series about the open-source Node.js testing library _mock-inspect_ of which I am the main contributor and author. Check out the entire series here! In last week’s article, we discussed how we can use mock-inspect to assert if and how the application under test makes network requests to API endpoints while simultaneously mocking out their responses. This week we are going to explore how we can use mock-inspect to implement a contract testing strategy without complicated frameworks like PACT.
27 May 2021