test(api): stop reporting request logs during testing (#60546)

This commit is contained in:
Oliver Eyton-Williams
2025-05-27 18:05:25 +02:00
committed by GitHub
parent 4edd1af7e4
commit 50c0194ee4

View File

@@ -12,7 +12,7 @@ jest.mock('../utils/env', () => ({
}));
async function setupServer() {
const fastify = Fastify({ logger: true });
const fastify = Fastify({ logger: true, disableRequestLogging: true });
await fastify.register(cookies);
await fastify.register(csrf);
// @ts-expect-error - @fastify/csrf-protection needs to update their types