JavaScript Jabber cover image

JSJ 411: Unit Testing Jest with Daniel Caldas

JavaScript Jabber

00:00

How to Set Up Tests That Are Easy to Follow

AJ Amy: I remember in the past using fixtures and then people tended to want to use factories instead so I'm curious you know as to what your experience has been with fixtures and why you prefer those over some kind of factory pattern. AJ Amy: The fixture came along exactly at this point in time when I was writing the Babel plugin given the scenario in like a bit of research that I did around how compilers are testing these days they basically have no boilerplate to the test whatsoever. If you run your test cases all of the test cases the same way you cannot tweak much right if you have a factory maybe you can have something that is more configurable or you can tweak along the

Play episode from 11:25
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