2.1 Introducing Jest2.1.1 Preparing our environment2.1.2 Preparing our working folder2.1.3 Installing Jest2.1.4 Creating a test file2.1.5 Executing Jest2.2 The library, the assert, the runner, and the reporter2.3 What unit testing frameworks offer2.3.1 The xUnit frameworks2.3.2 xUnit, TAP, and Jest structures2.4 Introducing the Password Verifier project2.5 The first Jest test for verifyPassword2.5.1 The Arrange-Act-Assert pattern2.5.2 Testing the test2.5.3 USE naming2.5.4 String comparisons and maintainability2.5.5 Using describe()2.5.6 Structure implying context2.5.7 The it() function2.5.8 Two Jest flavors2.5.9 Refactoring the production code2.6 Trying the beforeEach() route2.6.1 beforeEach() and scroll fatigue2.7 Trying the factory method route2.7.1 Replacing beforeEach() completely with factory methods2.8 Going full circle to test()2.9 Refactoring to parameterized tests2.10 Checking for expected thrown errors2.11 Setting test categoriesSummary