Hands on with Jest

By Chris Lorenzo

Elevator Pitch

Jest is a JavaScript Testing Framework with a focus on simplicity designed to delight developers. Set up is easy, the api is great and well documented, yet we’ve all seen tests written for code coverage rather than functionality. Lets look at how to do it right.

Description

Jest is a JavaScript Testing Framework with a focus on simplicity designed to delight developers. Set up is easy, the api is great and well documented, yet we’ve all seen tests written for code coverage rather than functionality. Testing code correctly is just as challenging as writing the actual code and should be given the time and attention it deserves. This talk will showcase some real life tests via a boilerplate application, showing how to test API calls, functions, UI components and async code. We’ll look at some real test cases I’ve encountered that while passing, were actually broken. You’ll come out of this talk with better patterns and tips for testing real web applications and maybe some motivation for writing tests.