Question · NestJS course · Module 7: Testing
Given-When-Then pattern
The Given-When-Then pattern in tests means:
Answer options
- Given: unit, When: integration, Then: e2e
- Given: mock, When: spy, Then: stub
- Given: data, When: request, Then: response code
- Given: preconditions, When: action, Then: expected result
You can check the correct answer by solving this task in the CodeWorlds game.