TestSight provides a user-friendly link between Jest's Istanbul coverage and VS Code. As you navigate through your files (.js, .jsx, .ts, .tsx), it presents the live coverage status of that file.
Features
Live coverage stats — Branches, Functions, and Statements are displayed as status bars so you can clearly see what needs work.
Highlight uncovered lines — Use the button in the sidebar to highlight lines not covered by any test directly in the editor.
Open Istanbul report — Launch the full Istanbul HTML coverage report for the active file with a single click.
Coverage legend — A legend is included in the sidebar for clarity on covered, partially covered, and uncovered indicators.
Requirements
A Jest configuration with coverage enabled (collectCoverage: true) and the html reporter included in coverageReporters.
Coverage must be generated at least once before the sidebar will display data. Run your tests with --coverage to populate the report.
Extension Settings
Setting
Default
Description
jestCoverage.runOnSave
false
Automatically run Jest coverage when a file is saved.