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:
@@ -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: {
|
||||
|
||||
Reference in New Issue
Block a user