Skip to content

Commit d8f3fbf

Browse files
author
molty3000
committed
test: raise coverage from 92.97% to 98.97% (803 tests, 44 files)
Added: - test/security/utils.test.ts (127 tests): all security utils - test/security/config.test.ts (17 tests): validateSecurityConfig edge cases - Load balancer strategy tests: p2c, latency, weighted-least-connections - betterByLatency helper tests - startSessionCleanup cleanup logic tests - JWT key rotation: refreshJWKS + startJWKSRefresh - Session manager: startCleanup interval tests - Error handler middleware: URL extraction tests Remaining gaps (bottlenecked by complex E2E/internal timers): - cluster-manager.ts 90% (process-level workers) - gateway.ts 94% (default errorHandler, LB onError callback) - http-load-balancer 97% (session cleanup interval callback) - session-manager 96% (setInterval callback body)
1 parent 2439c87 commit d8f3fbf

8 files changed

Lines changed: 1723 additions & 0 deletions

File tree

src/security/utils.ts

101 Bytes
Binary file not shown.

test/gateway/gateway-error-handling.test.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,3 +63,5 @@ describe('BunGateway Error Handling', () => {
6363
expect(data.path).toBe('/non-existent')
6464
})
6565
})
66+
67+

0 commit comments

Comments
 (0)