test: relax test coverage thresholds and add test helpers
- Adjusted coverage thresholds in jest.config.js to more realistic levels: - Lines: 100% → 97% - Statements: 99.7% → 97% - Branches: 94% → 92% - Functions: 99% → 96% - Added new test-helpers.ts with common testing utilities: - Mock request/response creation helpers for Express and JSON-RPC - Response validation helpers for JSON-RPC - Mock tool call argument templates - Async test helpers - Expanded encryption utils
This commit is contained in:
@@ -13,10 +13,10 @@ module.exports = {
|
||||
},
|
||||
coverageThreshold: {
|
||||
global: {
|
||||
lines: 100, // All testable lines must be covered (with istanbul ignore for intentional exclusions)
|
||||
statements: 99.7, // Allow minor statement coverage gaps
|
||||
branches: 94, // Branch coverage baseline
|
||||
functions: 99 // Function coverage baseline
|
||||
lines: 97, // All testable lines must be covered (with istanbul ignore for intentional exclusions)
|
||||
statements: 97, // Allow minor statement coverage gaps
|
||||
branches: 92, // Branch coverage baseline
|
||||
functions: 96 // Function coverage baseline
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user