Click in order · NestJS course · Module 7: Testing
AAA pattern and best practices
Arrange the AAA (Arrange-Act-Assert) test pattern:
Items to click
- Arrange - prepare data and mocks
- Act - call the method under test
- Cleanup - clean up after the test
- Assert - verify the result
You can check the correct answer by solving this task in the CodeWorlds game.