Vscode-jest: Show debug button on green tests

Created on 23 Dec 2019  路  3Comments  路  Source: jest-community/vscode-jest

馃殌 Feature Proposal

This debug button is present when the test fails and this works nice.

Lately I've been writing a lot of tests and some of them were green although they weren't supposed to be. It would be great if the debug button was there when the test was successful.

As a workaround i just add a fail() and wait until the test fails, then i can debug it.

馃摲 Screenshots

The debug button is missing but i can understand why.
image

The debug button that i mean:
image

documentation

Most helpful comment

you can use "jest.debugCodeLens.showWhenTestStateIn": ["fail", "unknown", "pass"] to show debug codelens for passed tests as well.

All 3 comments

you can use "jest.debugCodeLens.showWhenTestStateIn": ["fail", "unknown", "pass"] to show debug codelens for passed tests as well.

Were do you think we should add this to the docs @DaniGTA?

Yes! Definitely.

Was this page helpful?
0 / 5 - 0 ratings