DEV Community

nausaf
nausaf

Posted on

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)