Fix setup project: override testDir so global.setup.ts is discovered #1

Merged
peptiderepo merged 1 commits from claude/setup-project-testdir-fix-20260514 into main 2026-05-14 09:40:31 +00:00

View File

@@ -43,9 +43,14 @@ export default defineConfig({
},
projects: [
// Auth setup — runs first, saves session to disk
// Auth setup — runs first, saves session to disk.
// testDir override: global.setup.ts lives at repo root, not under ./tests.
// Without this, the top-level testDir './tests' filters it out and the
// setup project silently runs 0 tests, leaving the storage-state file
// unwritten and every chromium-project test failing on storageState load.
{
name: 'setup',
testDir: '.',
testMatch: /global\.setup\.ts/,
},
// All smoke tests — depend on auth setup