SPDX-License-Identifier: Apache-2.0
Problem
The global Jest coverage threshold for functions is set to 95%, but current function coverage is 92.12%, causing the test run to exit with code 1 even though all tests pass.
This gap was introduced by PR #331 (feat-paysys-test-coverage), which added coverage for simulation, masking, and TCS config services but left three repository files in src/repositories/configuration/ with low function coverage:
| File |
Statements |
Functions |
Lines |
network.map.repository.ts |
44.95% |
33.33% |
44.95% |
rule.config.repository.ts |
57.14% |
40% |
57.14% |
typology.config.repository.ts |
57.14% |
40% |
57.14% |
Impact
npm test exits with code 1 on both dev and any branch merged from dev
- Husky pre-push hooks fail, blocking all pushes from local machines
- This is a pre-existing issue from release 3.0.0
Required fix
Add unit tests for the uncovered functions in the three files above to bring global function coverage back above 95%.
SPDX-License-Identifier: Apache-2.0
Problem
The global Jest coverage threshold for functions is set to 95%, but current function coverage is 92.12%, causing the test run to exit with code 1 even though all tests pass.
This gap was introduced by PR #331 (
feat-paysys-test-coverage), which added coverage for simulation, masking, and TCS config services but left three repository files insrc/repositories/configuration/with low function coverage:network.map.repository.tsrule.config.repository.tstypology.config.repository.tsImpact
npm testexits with code 1 on bothdevand any branch merged fromdevRequired fix
Add unit tests for the uncovered functions in the three files above to bring global function coverage back above 95%.