O'Reilly logo

React 16 Tooling by Adam Boduch

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Basic assertions

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.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required