Put in order · NestJS course · Module 6: Error Handling and Monitoring

Arrange-Act-Assert Pattern

Order the stages of the AAA (Arrange-Act-Assert) pattern used in tests

Items to put in order

  • Act - execute the operation being tested
  • Assert - verify the expected result
  • Arrange - prepare test data and mocks

You can check the correct answer by solving this task in the CodeWorlds game.