Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: replaces c8 with node native coverage (#46)
## Description - replaces c8 with node 'native' --experimental-test-coverage ## Motivation and Context c8 in our setup always returned 100% coverage for all things - which might have to do with an issue in tsx (see [tsx #433](privatenumber/tsx#433) ), but might just as well be caused by something unexpectedly breaking in de nodejs / v8 w.r.t. loader coverage. `--experimental-test-coverage` is not perfect either (i.c.w. tsx it's unstable on node > 20.12.2, and line numbers are off), but at least the coverage data we get is more realistic. ## How Has This Been Tested? - [x] green ci ## Screenshots ``` > tsx --experimental-test-coverage --test-reporter ./tools/dot-with-summary.reporter.js --test src/*.spec.ts src/**/*.spec.ts ................................................. 49 passing (1.420 ms) =============================== Coverage summary =============================== Branches : 97,89 % (93/95) NOK Functions : 100 % (38/38) Lines : 99,76 % (422/423) ================================================================================ Uncovered lines: /Users/sander/prg/js/watskeburt/src/git-primitives.ts:80 Uncovered branches: /Users/sander/prg/js/watskeburt/src/git-primitives.ts:79 /Users/sander/prg/js/watskeburt/src/main.ts:22 ``` ## Types of changes - [ ] Bug fix (non-breaking change which fixes an issue) - [ ] Documentation only change - [ ] Refactor (non-breaking change which fixes an issue without changing functionality) - [ ] New feature (non-breaking change which adds functionality) - [ ] Breaking change (fix or feature that would cause existing functionality to change) - [x] Chore
- Loading branch information