DEV Community

Nithin Peter
Nithin Peter

Posted on

5

Jest Run It - Run and debug individual Jest tests from VS Code

While writing tests in Jest have you ever wanted to run a single test that you changed, but have to fiddle with Jest CLI arguments so that Jest can run only that test. I know, I have been there and it is painful.

Wouldn't it be nice if you could choose what test(s) to run right from your editor/IDE. And apparently IntelliJ family of IDEs had this feature for ages. I get so jealous when I pair with my co-worker who uses IntelliJ and they run/debug a test with the click of a button. My favorite IDE of the world, VS Code, couldn't do it. So I decided to find a solution and it resulted in me writing this VS Code plugin.

Introducing: Jest Run It 🏃‍♀️🏃‍♂️

Jest Run It

How to get it?

Search for "Jest run it" in your VS Code extensions panel (Learn how?). You should be able to find it and click on install.

You can find more details about the configuration options details here: https://marketplace.visualstudio.com/items?itemName=vespa-dev-works.jestRunIt

Github link: https://github.com/nithinpeter/jest-run-it

Other notable features

Apart from able to run/debug individual tests it has few other tricks under the sleeve as well:

  1. Test explorer view Alt Text
  2. Editor title actions to run/debug tests Alt Text

Sentry blog image

How to reduce TTFB

In the past few years in the web dev world, we’ve seen a significant push towards rendering our websites on the server. Doing so is better for SEO and performs better on low-powered devices, but one thing we had to sacrifice is TTFB.

In this article, we’ll see how we can identify what makes our TTFB high so we can fix it.

Read more

Top comments (0)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay