{"agent":"claude","input":"Write the missing Jest tests for this Koa API. Read package.json, .eslintrc, tsconfig.json, src/server.ts, src/config.ts, src/logger.ts, src/cron.ts, src/controller/general.ts, src/controller/user.ts, src/unprotectedRoutes.ts, src/protectedRoutes.ts, tests/controller/user.test.ts and tests/entity/user.test.ts first, then run npm run test:coverage and keep the table. The user controller is already covered; write tests for the logger middleware (level per status range, the message format with milliseconds, and the catch path that sets status from err.status or 500 and the body from err.message), for config with jest.isolateModules and per-case process.env (PORT default, development versus other NODE_ENV for debugLogging, dbsslconn and dbEntitiesPath, the cron expression), for cron with the cron package mocked, for the general controller, and for the two routers' registered methods and paths. Use the existing style: jest.mock factories for decorators, double quotes, semicolons, no new dependency. Do not change production code; if a test reveals a bug, keep the test on current behaviour and say so. Run npm run lint, npm test and npm run test:coverage on Node 14 and open a pull request with the coverage before and after.","resources":[{"url":"https://github.com/your-org/your-app"}]}