Skip to content

Code coverage not shown even though runAllTestsFirst is set without uncommited changes #213

Open
@stephtr

Description

@stephtr

Environment

  1. node -v: 9.3.0

  2. npm -v: 5.5.1

  3. npm ls react-scripts (if you haven’t ejected): -

  4. Operating system: Windows 10

Steps to Reproduce

  1. Create a git project and setup jest to collect code coverage
  2. Keep vscode's "jest.runAllTestsFirst": true
  3. Commit all changes
  4. Reload jest runner (which starts the initial full test run)

Expected Behavior

Code coverage overlay should be available for the whole time and the whole project.

Actual Behavior

Code coverage overlay works during the initial full test run, but disappears as soon as jest shows No tests found related to files changed since last commit..

As soon as one saves an edit in a covered file code coverage reappears for all tested files (not just the edited one).


If necessary, I could provide a sample repository and further instructions.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions