Put in order · NestJS course · Module 7: Testing
Types of Test Doubles
Arrange Test Doubles from simplest to most complex:
Items to put in order
- Mock - verifies interactions
- Stub - predetermined responses
- Dummy - an object filling a parameter
- Spy - monitors calls
You can check the correct answer by solving this task in the CodeWorlds game.