Run API tests serially and support external targets without stale coverage logs
This commit is contained in:
1 parent
e18769e8cf
commit
4e47e350bf
3 files changed
+36
-17
No files matched your search
@@ -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,
|
||||
|
||||
Reference in new issue
Block a user