JSJ 411: Unit Testing Jest with Daniel Caldas
JavaScript Jabber10 Joulu 2019

JSJ 411: Unit Testing Jest with Daniel Caldas

Daniel Caldas is calling from Singapore. He currently works as a software engineer for Zendesk and has also worked in Portugal and Germany. He has worked primarily on the frontend with Node and JavaScript. He talks about his experience testing JavaScript, how he got started with Jest, and why he likes it. Daniel finds Jest very easy to use and straightforward. He likes that Jest has a single reference page for documentation. He feels that Jest is largely complete out of the box and has only made a small add on to get rid of Boilerplate in some tests.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.Daniel talks about some of the features available in Jest, converting observables into promises, and tricks he has used to make tests easier to put together. He talks about his method for keeping his mocks and stubs straight. He advises listeners to have some organizational rules, such as starting the imports alphabetically, and to always follow those rules. He talks about how he runs tests and what environments he uses. While Jest is normally used for unit testing, Daniel has also used it for end to end tests, and he talks about his experience with an open source project doing both types in Jest. Daniel concludes the show by advising listeners starting with JavaScript and frontend, don’t think too much about the library you’re going to use because you’ll probably end up using Jest. It’s more important to have unit tests and a proper testing framework at the beginning than anything else. He also invites listeners to check out his open source work on Github.Panelists
  • 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"**Guest
  • Danile Caldas
Sponsors
  • Sentry | Use the code “devchat” for $100 credit
LinksPicksAimee Knight:AJ O’Neal:Charles Max Wood:Daniel Caldas:Special Guest: Daniel Caldas.

Support this podcast at — https://redcircle.com/javascript-jabber/donations

Privacy & Opt-Out: https://redcircle.com/privacy

Become a supporter of this podcast: https://www.spreaker.com/podcast/javascript-jabber--6102064/support.

Jaksot(738)

194 JSJ JavaScript Tools Fatigue

194 JSJ JavaScript Tools Fatigue

JS Remote Conf starts tomorrow! Get your ticket TODAY! 03:59 - JavaScript Tools FatigueCatalyst: Eric Clemmons: Javascript FatigueSome Twitter Opinions and Perspectives:Ryan FlorenceMichael JacksonJam...

13 Tammi 20161h 6min

193 JSJ Electron with Jessica Lord and Amy Palamountain

193 JSJ Electron with Jessica Lord and Amy Palamountain

Get your JS Remote Conf tickets! Freelance’ Remote Conf’s schedule is shaping up! Head over here to check it out! 02:17 - Jessica Lord IntroductionTwitter GitHub Blog02:40 - Amy Palamountain Introduc...

6 Tammi 201653min

192 JSJ IoT with Peter Hoddie

192 JSJ IoT with Peter Hoddie

Get your JS Remote Conf tickets! 02:10 - Peter Hoddie IntroductionTwitter02:36 - Kinoma     03:28 - Embedded Development in C; Approachability05:24 - IoT = Internet of Things; Embedded Devices and Sys...

30 Joulu 201558min

191 JSJ Stripe with Craig McKeachie

191 JSJ Stripe with Craig McKeachie

Check out JS Remote Conf! 02:26 - Craig McKeachie IntroductionTwitter BlogThe JavaScript Framework Guide by Craig McKeachieJavaScript Jabber Episode #132: MV Frameworks with Craig McKeachieScavenger H...

23 Joulu 201558min

190 JSJ Web Performance Part 2 with Nik Molnar

190 JSJ Web Performance Part 2 with Nik Molnar

There’s still time! Check out and get your JS Remote Conf tickets!  JavaScript Jabber Episode #184: Web Performance with Nik Molnar (Part 1) 02:04 - Nik Molnar Introduction Twitter GitHub BlogGlimpse[...

16 Joulu 20151h 17min

189 JSJ PureScript with John A. De Goes and Phil Freeman

189 JSJ PureScript with John A. De Goes and Phil Freeman

02:54 - John A. De Goes IntroductionTwitter GitHub BlogSlamData06:34 - Phil Freeman IntroductionTwitter GitHub Blog07:38 - What is PureScript?09:11 - FeaturesExtensible Effects12:24 - Overcoming the V...

9 Joulu 20151h 12min

188 JSJ JavaScript Code Smells with Elijah Manor

188 JSJ JavaScript Code Smells with Elijah Manor

Check out JS Remote Conf! 02:22 - Elijah Manor IntroductionTwitter GitHub BlogLeanKitEliminate JavaScript Code Smells (Elijah's Talk Abstract)A video containing the 30 min version of the talk: Elimina...

2 Joulu 201551min

187 JSJ Vue.js with Evan You

187 JSJ Vue.js with Evan You

JS Remote Conf will be held from Thursday, January 14th - Saturday, January 16th! Sign up today!  01:59 - Evan You Introduction Twitter GitHub BlogMeteor02:34 - Vue.js vs Competitors and Motivators Be...

25 Marras 201547min

Suosittua kategoriassa Liike-elämä ja talous

sijotuskasti
mimmit-sijoittaa
rss-rahapodi
psykopodiaa-podcast
herrasmieshakkerit
ostan-asuntoja-podcast
rahapuhetta
rss-rahamania
rss-seuraava-potilas
rss-lahtijat
rss-merja-mahkan-rahat
rss-40-ajatusta-aanesta
rss-sami-miettinen-neuvottelija
leadcast
rss-porssipuhetta
rss-levosta-kasin-yrittajyys
rss-sisalto-kuntoon
rss-vaikuttavan-opettajan-vierella
rss-draivi
rss-ma