From 4f69f6ed2011c21393fbec4229a5afea9b49cddb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rados=C5=82aw=20Smoli=C5=84ski?= Date: Tue, 27 Oct 2026 14:57:21 +0100 Subject: [PATCH] Cookie scanner test: no generate:types child on Payload init Outside production, getPayload() spawns `payload generate:types` in the background and that process never exits, leaving one orphan per test file per run. Co-Authored-By: Claude Opus 5.5 --- test/cookieScannerIntegration.test.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/cookieScannerIntegration.test.ts b/test/cookieScannerIntegration.test.ts index 635ca3a..f84f526 100644 --- a/test/cookieScannerIntegration.test.ts +++ b/test/cookieScannerIntegration.test.ts @@ -69,6 +69,8 @@ beforeAll(async () => { ], secret: 'cookie-scanner-test-secret', telemetry: false, + // Payload otherwise spawns `payload generate:types` on init outside production; it never exits. + typescript: { autoGenerate: false }, }) payload = await getPayload({ config }) await payload.updateGlobal({ slug: 'site-integrations' as never, data: { ga4MeasurementId: 'G-ABC123DEF4' } as never })