Daniel explains what a snapshot, how they work, and why he prefers fixtures over factories. He gives tips on how to set up your tests so that they are easy to follow. He finds it helps to structure your scenarios in the fixture description. He talks about gotchas in Jest. While Jest is largely easy to use, Jest has been around for a while and breaking changes do happen. It’s important to check what version your code base is using. While there are a lot of free sources around Jest online, he advises listeners to stick as close to the official documentation as possible, or to people associated with Jest, and to read recent stuff. As for conventions, Jest has pretty much everything out of the box and the built in conventions make it easy to navigate any project that uses Jest.
- Aimee Knight
- AJ O’Neal
- Charles Max Wood
**To receive your 40% OFF coupon for Manning Publications
(good for all our products in all formats) visit us on Facebook
- click on "Send A Message"and type "YES"**
Sentry | Use the code “devchat” for $100 credit
Charles Max Wood:
Special Guest: Daniel Caldas.