Almost every back-end application has to communicate with external dependencies at some point. In this post, we'll learn how to properly test them using NestJS - and no, it's not simply "mocking out" stuff. Here's what we'll cover: Types of dependencies: Managed VS Unmanaged; Types of Test Doubles; When to use Mocks and when to replace them with Spies; When to use Stubs; And as always, you can check out the final code at the public repository.
Is this you? As a journalist, you can create a free Muck Rack account to customize your profile, list your contact preferences, and upload a portfolio of your best work.
Claim your profile