Vscode-jest: "debug" tooltip only shows when test is failing

Created on 30 Jan 2018  路  4Comments  路  Source: jest-community/vscode-jest

I would like to run tests in the debugger even when they are passing so that I can inspect variables and add more cases. The plugin only adds the "debug" tooltip

Environment

  1. node -v: v8.7.0
  2. npm -v: 5.6.0

  3. Operating system: OSX 10.13.2

Steps to Reproduce

Create a test with describe/it. Make it pass.

Expected Behavior

"debug" tool tip shows up.

Actual Behavior

"debug" tool tip does not show.

enhancement

Most helpful comment

A great way to do that could be enum option of "all", "failed", "none" with failed as the default

All 4 comments

This was a conscious decision, perhaps you could consider a PR making an option for this?

A great way to do that could be enum option of "all", "failed", "none" with failed as the default

Would also really like an option to always enable debugging, as there are cases when tests pass, even though they should not.

When #292 ships you'll have a new setting to configure when the Debug CodeLens appears @offero and @iMarv. Hopefully it's a pleasant user experience. 馃槈

Was this page helpful?
0 / 5 - 0 ratings