Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: add code coverage #85

Merged
merged 1 commit into from
Nov 7, 2024
Merged

chore: add code coverage #85

merged 1 commit into from
Nov 7, 2024

Conversation

dotmh
Copy link
Owner

@dotmh dotmh commented Nov 7, 2024

This adds code coverage to vitest in the template and installs the dependencies at the workspace's root to be used wherever required.

It adds a new PNPM task called test:coverage to run the coverage generator and exit. This stops an issue where vitest will only run changed tests, which messes up the coverage report.

It adds a new PNPM task called test:coverage to the project's root, which allows it to run code coverage in all packages.

Copy link

sonarcloud bot commented Nov 7, 2024

Copy link

New and removed dependencies detected. Learn more about Socket for GitHub ↗︎

Package New capabilities Transitives Size Publisher
npm/@vitest/[email protected] Transitive: environment, filesystem, shell +88 16.1 MB vitestbot
npm/[email protected] Transitive: filesystem +3 680 kB hirokiosame
npm/[email protected] Transitive: environment, filesystem, network, shell, unsafe +39 10.6 MB antfu, oreanno, patak, ...1 more

🚮 Removed packages: npm/[email protected], npm/[email protected]

View full report↗︎

@dotmh dotmh merged commit 30b1820 into main Nov 7, 2024
5 checks passed
@dotmh dotmh deleted the fix/add-test-coverage branch November 7, 2024 11:52
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