The One About Slow Jest Tests episode artwork

EPISODE · Feb 3, 2023 · 1H 6M

The One About Slow Jest Tests

from Runtime Rundown - JavaScript and Web Development · host Joe Boyle and Evan Cooper

In this episode, we cover "Why is My Jest Test Suite So Slow" by Steven Lemon and completely nerd out on it. This one is chock-full of practical tips for improving your Jest suite time as well as your general understanding of how Jest works "under the hood".  Evan does a "Cookie Corner" and hyper-speaks through a bunch of reasons why you shouldn't use client side cookies. Joe talks about memory leaks while sounding mildly depressed, and we actually have good news this week!  Extra resources for Jest testing: 1. Use the time shell built-in for enhanced timing. time npm run <your test command> --takeyourtime 2. See this issue  on why Jest workers are slow sometimes 3. See this issue on why userEvent.type is slow all the time 4. Check out this package for reporting slow individual tests 5. For finding Jest memory leaks, try node --inspect-brk --expose-gc ./node_modules/.bin/jest --runInBand --logHeapUsage

In this episode, we cover "Why is My Jest Test Suite So Slow" by Steven Lemon and completely nerd out on it. This one is chock-full of practical tips for improving your Jest suite time as well as your general understanding of how Jest works "under the hood".  Evan does a "Cookie Corner" and hyper-speaks through a bunch of reasons why you shouldn't use client side cookies. Joe talks about memory leaks while sounding mildly depressed, and we actually have good news this week!  Extra resources for Jest testing: 1. Use the time shell built-in for enhanced timing. time npm run <your test command> --takeyourtime 2. See this issue  on why Jest workers are slow sometimes 3. See this issue on why userEvent.type is slow all the time 4. Check out this package for reporting slow individual tests 5. For finding Jest memory leaks, try node --inspect-brk --expose-gc ./node_modules/.bin/jest --runInBand --logHeapUsage

NOW PLAYING

The One About Slow Jest Tests

0:00 1:06:53

No transcript for this episode yet

We transcribe on demand. Request one and we'll notify you when it's ready — usually under 10 minutes.

MG Show MG Show The MG Show, hosted by Jeffrey Pedersen and Shannon Townsend, is a leading alternative media platform dedicated to uncovering the truth behind today’s most pressing political issues. Launched in 2019, the show has grown exponentially, offering unfiltered insights, comprehensive research, and real-time analysis. With a commitment to independent journalism and factual integrity, the MG Show empowers its audience with knowledge and encourages active participation in the political discourse. Breaking News Show | eTurboNews Juergen Thomas Steinmetz News is relevant to the global travel and tourism industry, human rights and global issues.Breaking news when it happens and only from the source. Eat to Live Jenna Fuhrman, Dr. Fuhrman Our health is our most precious gift and smart nutrition can change your life. Each month, join Dr. Fuhrman and his daughter, Jenna Fuhrman as they discuss important topics in the world of nutrition. Eat to Live will change the way you eat and think about food. French Your Way Jessica: Native French teacher founder of French Your Way Boost your French listening skills and test your comprehension with this one of a kind series of podcasts. Get the chance to listen to a real conversation between native speakers talking at normal speed AND customise your learning experience through carefully designed sets of questions (2 levels of difficulty) available for download at www.frenchvoicespodcast.com. All interviews also come with the transcript. French teacher Jessica interviews native speakers of French from around the world who share a bit of their life and passion. Where else would you meet in one same place a French yoga teacher based in Melbourne, a soap manufacturer from Provence, or a couple cycling around the world?

Frequently Asked Questions

How long is this episode of Runtime Rundown - JavaScript and Web Development?

This episode is 1 hour and 6 minutes long.

When was this Runtime Rundown - JavaScript and Web Development episode published?

This episode was published on February 3, 2023.

What is this episode about?

In this episode, we cover "Why is My Jest Test Suite So Slow" by Steven Lemon and completely nerd out on it. This one is chock-full of practical tips for improving your Jest suite time as well as your general understanding of how Jest works "under...

Can I download this Runtime Rundown - JavaScript and Web Development episode?

Yes, you can download this episode by clicking the download button on the episode player, or subscribe to the podcast in your preferred podcast app for automatic downloads.
URL copied to clipboard!