Commit graph

1 commit

Author SHA1 Message Date
5137b80a2a test: add middleware tests for auth, compression, and usage
All checks were successful
Build & Deploy to Staging / Build & Deploy to Staging (push) Successful in 11m50s
- auth.test.ts (8 tests): missing key, Bearer/X-API-Key/query extraction, priority, invalid key, apiKeyInfo attachment
- compression.test.ts (5 tests): gzip for text/json, skip for images/small/no-accept
- usage.test.ts (7 tests): no keyInfo passthrough, tracking with headers, increment, 429 on limit, month reset, DB load, error handling

Total: 20 new tests, 205 passing (was 190)
2026-03-03 12:16:28 +01:00