fix: update coverage command in Makefile and add .nyc_output to .gitignore

This commit is contained in:
Félix MARQUET
2025-11-18 10:12:13 +00:00
parent 648d88ab7c
commit eb1a8f08ab
2 changed files with 3 additions and 9 deletions

1
.gitignore vendored
View File

@@ -3,3 +3,4 @@ node_modules
coverage
/.vscode
.env
.nyc_output

View File

@@ -6,14 +6,7 @@ lint:
npx eslint src
npm run dtslint-next
coverage:
node_modules/istanbul/lib/cli.js cover \
-i 'src/*' \
--include-all-sources \
--dir coverage \
node_modules/jasme/run.js
npx nyc --include src --reporter=lcov --reporter=text node_modules/jasme/run.js
coveralls: coverage
ifndef COVERALLS_REPO_TOKEN
$(error COVERALLS_REPO_TOKEN is undefined)
endif
node_modules/coveralls/bin/coveralls.js < coverage/lcov.info
npx nyc report --reporter=text-lcov | npx coveralls