JavaScript Jabber cover image

JSJ 411: Unit Testing Jest with Daniel Caldas

JavaScript Jabber

00:00

How to Use Jest to Make It Easier to Use

I don't really had to tweak much around Jest to make it work so no add-ons specifically. A Babel plugin just uses Jest snapshots to remove all the boilerplate that you need to do like defining your test cases and then doing an assertion at the end. That was more of I would say not not overengineered but way to get rid of this boilerplate dish around Jest because I was just repeating myself time after time. So basically the snapshot is just literally code that the the play in outputs gotcha, hopefully.

Play episode from 08:19
Transcript

The AI-powered Podcast Player

Save insights by tapping your headphones, chat with episodes, discover the best highlights - and more!
App store bannerPlay store banner
Get the app