{"agent":"claude","input":"Write Jest and Supertest integration tests for every route in this Express API that lacks them, against a real MongoDB started in the sandbox, covering auth failures and validation errors. First list each route and middleware in app.js and the routes directory with the cases the existing tests already cover, and only add what is missing: operator injection and markup in request bodies, unknown paths, expired and wrong-type tokens, role checks, and any middleware that only runs in production, tested by mounting it on a small app in the test. Reuse the existing fixtures and test database helper, and do not mock models, services or the database; stubbing outbound email is fine. Run yarn test. If a new test fails because of the application, keep it skipped with a comment saying what the API returned. Open a pull request with the before and after table of routes and cases.","resources":[{"url":"https://github.com/your-org/your-api"}]}