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

Unblocks PRAutoBlogger workflow-driven prod deploys (broken since 2026-04-26 smoke gate add).

Agent-Session: cto merge-peptide-e2e-testdir-fix
This commit was merged in pull request #1.
This commit is contained in:
peptiderepo
2026-05-14 16:40:31 +07:00
committed by GitHub
parent da79ee234f
commit c131db5fef

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