A small, idiomatic TypeScript invoicing/cart library used as the JS/TS reference example for Coverage Tracker. It exists to give the JS/TS row in the coverage report generation guide a live, working reference, and to populate the demo dashboard with real trend data.
This is a demo/marketing repo, not a test suite for Coverage Tracker itself.
src/— discount/cart calculations, currency formatting, and validation helpers, each with real branching logic.test/— a vitest suite with a deliberately uncovered branch or two, sobranch_coverage < line_coverageshows up on the dashboard..github/workflows/coverage.yml— runs tests with coverage, generates a Lizard complexity report and a jscpd duplication report (a small duplicated block is seeded on purpose), then reports all three to the demo instance via thecoverage-trackerreporting Action.
npm ci
npm run coverage # writes coverage/lcov.info