Run API tests serially and support external targets without stale coverage logs

This commit is contained in:
Mike Cao committed 2026-09-06 20:11:15 -07:00
1 parent e18769e8cf
commit 4e47e350bf
3 files changed
+36 -17

No files matched your search

+3 -1
View File
@@ -20,8 +20,10 @@ export default defineConfig({
testDir: './tests/api',
testMatch: '**/*.spec.ts',
outputDir: 'test-results/api',
// Specs share one seeded database and a few mutable globals (the shared users,
// the global 2FA requirement toggled by admin.spec.ts), so they must run serially.
fullyParallel: false,
workers: process.env.API_WORKERS ? Number(process.env.API_WORKERS) : 1,
workers: 1,
// Specs are deterministic and share coverage state; retries would only hide flakes.
retries: 0,
forbidOnly: !!process.env.CI,