Spaces:
Sleeping
Sleeping
Commit History
-
feat: require confirm body for reset-database and extract mock factory
- Guard the reset-database admin endpoint behind a confirmation body - Extract a mock factory to simplify test configuration7db7c77 -
refactor: move SENSITIVE_KEYS to config module
- Centralize sensitive environment keys in config and export thema3bf2e3
-
refactor: rewrite rate-limiter with circuit breaker and CIDR support
- Add three-tier fallback: Redis Lua, in-memory LRU, and allow-all - Implement a circuit breaker with escalating block durations - Support CIDR-based trusted proxy extraction7b6e647
-
test: refactor test infra with createClearCjs helper
- Add a helper to clear the CJS require cache between module re-imports - Simplify server tests that inject mock dependencies13def79
-
feat: seed environment settings and extract SETTING_DEFS
- Move environment settings into a shared config definition - Persist environment-backed settings into the settings table at seed time7f0d072
-
refactor: reorganize src into feature subdirectories
- Group config, db, middleware, redis, and server code into subfolders - Update all require paths across the codebase1f0f638 -
test: add server unit tests and restructure test suite
- Add unit tests for the HTTP request handler and route parsing - Organize test files by module directory62e3094
-
test: add unit tests for core modules
- Cover config, load-env, database, migrate, seed, redis, and rate-limiter - Re-import modules with different environment values to hit each branch25059bd
-
test: migrate to vitest with integration tests and CI workflow
- Replace the ad-hoc node test runner with vitest - Add an integration suite covering all API endpoints against a real server - Add helpers to start and stop an isolated server and seed a temp database - Add a GitHub Actions workflow running tests on Node 22, 24, and 26 with coverage75a60d6