fix(tests): prevent playwrigt test to load default .env

This commit is contained in:
Edouard Vanbelle
2026-08-09 11:34:43 +02:00
parent 107dbfc731
commit df9a6babbb
4 changed files with 70 additions and 4 deletions
+7
View File
@@ -94,6 +94,13 @@ export default defineConfig({
// so they can sign proofs in-browser. Once landed, this
// override goes and Playwright runs production-shape.
OXICLOUD_DPOP_MODE: 'opportunistic',
// Explicitly clear OXICLOUD_METRICS_LISTEN so a developer's
// `.env` value (typical: `127.0.0.1:9090`) doesn't leak in via
// the parent-process env Playwright merges here — the test
// server would collide with the developer's own running
// instance on that port and main.rs would hard-fail. Empty
// string is the config-parser's "disabled" sentinel.
OXICLOUD_METRICS_LISTEN: '',
},
},
});