Testing · Junior · Question 9 of 78
What does the Arrange–Act–Assert (AAA) pattern describe?
- ✓Correct answer: Test structure: prepare data, perform the action, check the result
- 2The order in which test files are run
- 3Three kinds of assertions in Jest
Explanation
The same idea is called Given–When–Then in BDD. A clear structure makes tests easy to read and keeps each test focused on one behaviour.