mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-01-05 21:03:24 -05:00
test(api): stop reporting request logs during testing (#60546)
This commit is contained in:
committed by
GitHub
parent
4edd1af7e4
commit
50c0194ee4
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user