test(js): make test-frontend-coverage displays vitest coverage

This commit is contained in:
Earl Warren 2024-06-24 07:12:55 +02:00
parent e8db5ff7fe
commit 536efeb26e
No known key found for this signature in database
GPG key ID: 0579CB2928A78A00
4 changed files with 225 additions and 4 deletions

View file

@ -251,6 +251,7 @@ help:
@echo " - show-version-full show the same version as the API endpoint"
@echo " - show-version-major show major release number only"
@echo " - test-frontend test frontend files"
@echo " - test-frontend-coverage test frontend files and display code coverage"
@echo " - test-backend test backend files"
@echo " - test-remote-cacher test backend files that use a remote cache"
@echo " - test-e2e-sqlite[\#name.test.e2e] test end to end using playwright and sqlite"
@ -529,6 +530,10 @@ test-remote-cacher:
test-frontend: node_modules
npx vitest
.PHONY: test-frontend-coverage
test-frontend-coverage: node_modules
npx vitest --coverage --coverage.include 'web_src/**'
.PHONY: test-check
test-check:
@echo "Running test-check...";