diff --git a/packages/testing/src/test-server.ts b/packages/testing/src/test-server.ts index 3aeac1373d..8f90a7263a 100644 --- a/packages/testing/src/test-server.ts +++ b/packages/testing/src/test-server.ts @@ -120,7 +120,7 @@ export class TestServer { const usingCookie = tokenMethod === 'cookie' || (Array.isArray(tokenMethod) && tokenMethod.includes('cookie')); if (usingCookie) { - configureSessionCookies(config); + configureSessionCookies(app, config); } const earlyMiddlewares = config.apiOptions.middleware.filter(mid => mid.beforeListen); earlyMiddlewares.forEach(mid => {