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 <[email protected]>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
a0545b6716
commit
4f69f6ed20
@@ -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 })
|
||||
|
||||
Reference in New Issue
Block a user