fix(01): use localhost DATABASE_URL for vitest host-side test execution

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
kevin-asprec
2026-03-04 18:48:43 +08:00
parent dc85d348ef
commit 36729343cc

View File

@@ -7,6 +7,12 @@ export default defineConfig({
test: {
globals: true,
environment: "node",
env: {
// Tests run from the host machine, so use localhost instead of Docker service name
DATABASE_URL:
process.env.DATABASE_URL_LOCAL ||
"postgresql://netforge:netforge_dev@localhost:5432/netforge_dev",
},
},
resolve: {
alias: {