JavaScript testing: 9 best practices to learn
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.
Table of contents
1. Test anatomy and test descriptions2. Unit testing anti-patterns3. Test PreparationConclusion1 Comment
Sort: