Fake setTimeout and friends (collectively known as "timers"). Useful in your JavaScript tests. Extracted from Sinon.JS
BSD 3-Clause "New" or "Revised" License
802
stars
105
forks
source link
Test coverage: use nyc #274
Closed
mroderick closed 4 years ago
This PR adds tasks for calculating coverage (
test-coverage
) and to check coverage (test-check-coverage
).This paves the way for putting this project in line with the other Sinon projects and get us to 100% test coverage.
How to verify
npm ci
npm run test-coverage
package.json
, set a value higher than the measured coveragenpm run test-check-coverage
echo $?
)git reset --hard
npm run test-check-coverage
echo $?
)