TLDRTests act as a piece of documentation for other developers. By reading the tests you’ve created, they should get a good understanding of the purpose of the code. You want to break up the logic inside tests into three parts to make them easier to understand. The AAA pattern stands for Arrange, Act, and Assert.

9m read time From blog.logrocket.com
Post cover image
Table of contents
1. Test anatomy and test descriptions2. Unit testing anti-patterns3. Test PreparationConclusion
1 Comment

Sort: