April 2018
Intermediate to advanced
298 pages
6h 34m
English
Assertions in your unit tests are created using Jest's expectation API. These functions trigger unit test failures when the expectations of your code aren't met. The output of test failures when using this API shows you what was expected to happen in addition to what actually happened. This seriously cuts down the amount of time you spend chasing down values.