tests/api/helpers.ts, the shared helper imported across many tests/api/*.test.ts files, declares its request body parameter as body?: any (line 10). Because this helper is reused so broadly, this single any silently disables type checking on the request bodies constructed in every test file that uses it, including ones that would otherwise benefit from catching a typo'd field name against the route's real input schema at compile time. Acceptance criteria: change the parameter to body?: unknown (or a generic <T> threaded through to callers), and fix any call sites that then reveal a real type mismatch.
tests/api/helpers.ts, the shared helper imported across many tests/api/*.test.ts files, declares its request body parameter as
body?: any(line 10). Because this helper is reused so broadly, this singleanysilently disables type checking on the request bodies constructed in every test file that uses it, including ones that would otherwise benefit from catching a typo'd field name against the route's real input schema at compile time. Acceptance criteria: change the parameter tobody?: unknown(or a generic<T>threaded through to callers), and fix any call sites that then reveal a real type mismatch.