DEV Community

nausaf
nausaf

Posted on

2

Replacement for retired VS Code Jest codelens

The Codelens provided by VS Code Jest extension on tests in the editor has been retired (hence this post on Jest CodeLens I wrote a while back is also outdated).

The fix is really simple:

In your User Settings file (setttings.json), put this line in:

"testing.defaultGutterClickAction": "contextMenu"
Enter fullscreen mode Exit fullscreen mode

You should now be able to access Debug test etc. from the Play button in the gutter:

Image description

Top comments (0)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs

👋 Kindness is contagious

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

Okay