Chit Chat Across the Pond

CCATP #717 – Bart Busschots on PBS 136 of X — More Jesting


Listen Later

Bart Busschots taught us the basics of Jest last time for our Test Driven Development environment. This week we learn to group our tests using the `describe()` function in Jest. Grouping tests with describe does more than eliminate the need to comment our code, it also provides more useful output from our tests and scopes what happens inside.

As Bart describes it, we climb "Mount Jest" at one point as he explains how we can also loop our tests (instead of repeating code as we did last time) using `describe.each()()`. It's a little head bending with arrays of arrays and functions of functions but it sounds worse to describe than it actually is to read and create.

He then describes ways to run certain setup and tear down functions before and after our tests are run and why we might need to do that.

Finally, we get the last cool thing we'll need to understand about Jest, and that's how to use the `.only` and `.skip` modifiers on our tests so that we can focus on individual tests while we're chasing bugs.

For the first time in a long time, he even gives us an optional challenge to flex these new Jest muscles.

You can find Bart's fabulous tutorial shownotes at pbs.bartificer.net.

...more
View all episodesView all episodes
Download on the App Store

Chit Chat Across the PondBy Allison Sheridan

  • 4.8
  • 4.8
  • 4.8
  • 4.8
  • 4.8

4.8

9 ratings


More shows like Chit Chat Across the Pond

View all
Mac Geek Gab — Apple Tips, Tricks, and Troubleshooting by Dave Hamilton, Pilot Pete & Adam Christianson

Mac Geek Gab — Apple Tips, Tricks, and Troubleshooting

829 Listeners

NosillaCast Apple Podcast by Technology with an EVER so slight Apple bias

NosillaCast Apple Podcast

158 Listeners

Mac OS Ken by Ken Ray

Mac OS Ken

893 Listeners

MacBreak Weekly (Audio) by TWiT

MacBreak Weekly (Audio)

2,013 Listeners

iOS Today (Audio) by TWiT

iOS Today (Audio)

543 Listeners

Mac Power Users by Relay

Mac Power Users

1,287 Listeners

The Talk Show With John Gruber by Daring Fireball / John Gruber

The Talk Show With John Gruber

3,125 Listeners

Accidental Tech Podcast by Marco Arment, Casey Liss, John Siracusa

Accidental Tech Podcast

2,092 Listeners

Clockwise by Relay

Clockwise

251 Listeners

Let's Talk Apple by Bart Busschots

Let's Talk Apple

18 Listeners

Connected by Relay FM

Connected

568 Listeners

Upgrade by Relay

Upgrade

1,199 Listeners

Overtired by Christina Warren, Jeff Severns Guntzel, and Brett Terpstra

Overtired

107 Listeners

Taming the Terminal by Bart Busschots & Allison Sheridan

Taming the Terminal

20 Listeners

The Checklist by SecureMac by SecureMac

The Checklist by SecureMac

71 Listeners

AppStories by Federico Viticci, John Voorhees

AppStories

508 Listeners

Programming By Stealth by Bart Busschots & Allison Sheridan

Programming By Stealth

14 Listeners