Problem
The jest.config.js sets up collectCoverageFrom, but package.json lacks a command to generate the report, and no minimum coverage threshold is enforced.
Expected behavior
A test:coverage script is added to package.json, and jest.config.js is updated to enforce at least 80% global coverage for branches, functions, and lines.
Files to update
package.json
jest.config.js
Project relevance
Enforces the project's strict testing requirements for financial middleware, mathematically guaranteeing code reliability.
Acceptance criteria
Problem
The
jest.config.jssets upcollectCoverageFrom, butpackage.jsonlacks a command to generate the report, and no minimum coverage threshold is enforced.Expected behavior
A
test:coveragescript is added topackage.json, andjest.config.jsis updated to enforce at least 80% global coverage for branches, functions, and lines.Files to update
package.jsonjest.config.jsProject relevance
Enforces the project's strict testing requirements for financial middleware, mathematically guaranteeing code reliability.
Acceptance criteria
coverageThresholdis added to the Jest config enforcing a minimum of 80%