Skip to content

Add JS coverage command#1453

Open
beeman wants to merge 1 commit intomainfrom
beeman/js-test-coverage
Open

Add JS coverage command#1453
beeman wants to merge 1 commit intomainfrom
beeman/js-test-coverage

Conversation

@beeman
Copy link
Copy Markdown
Collaborator

@beeman beeman commented Apr 17, 2026

Add a Vitest coverage script in the JS workspace and enable HTML and text coverage reports for package source files.

Ignore the generated coverage directory and add the V8 coverage provider so the report can be opened locally from js/coverage/index.html.

This is useful to get visual overview of what code needs more testing.

To use this, run the following command from the root of the repo:

pnpm run -C js test:coverage

Then you can view it:

# open it over the filesystem
open js/coverage/index.html
# host it over http
pnpx serve js/coverage/

@beeman beeman requested a review from Funkatronics April 17, 2026 10:22
@beeman beeman force-pushed the beeman/js-test-coverage branch from fa336d9 to a36852c Compare April 17, 2026 10:23
Add a Vitest coverage script in the JS workspace and enable HTML and text coverage reports for package source files.

Ignore the generated coverage directory and add the V8 coverage provider so the report can be opened locally from js/coverage/index.html.
@beeman beeman force-pushed the beeman/js-test-coverage branch from a36852c to 53b643a Compare April 17, 2026 10:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant