Abdu Taviq

Test Doubles

@youtube

We know tests contain E2E, Integration, and Unit tests. We use test doubles when we have indirect inputs (like queries), indirect outputs (like sending events to events stream or when you call API), or slow tests (when you call the server or the database or over the network). These mocks can have different types:

Note: across the community, the naming might be different and not unified. It’s enough to get the idea about them and use the proper construct

Read more: