fix(db): RDS-CA i poolen (app+migrator delar TLS)
This commit is contained in:
@@ -1,9 +1,14 @@
|
||||
import { defineConfig } from "vitest/config";
|
||||
import { config } from "dotenv";
|
||||
import path from "node:path";
|
||||
import { fileURLToPath } from "node:url";
|
||||
|
||||
const __dirname = path.dirname(fileURLToPath(import.meta.url));
|
||||
|
||||
// Load root .env so integration tests can use TEST_DATABASE_URL / DATABASE_URL
|
||||
// when running `pnpm test` from the workspace root.
|
||||
config({ path: path.resolve(__dirname, "../../.env") });
|
||||
|
||||
export default defineConfig({
|
||||
test: {
|
||||
environment: "node",
|
||||
|
||||
@@ -0,0 +1,17 @@
|
||||
import { defineConfig } from "vitest/config";
|
||||
import { config } from "dotenv";
|
||||
import path from "node:path";
|
||||
import { fileURLToPath } from "node:url";
|
||||
|
||||
const __dirname = path.dirname(fileURLToPath(import.meta.url));
|
||||
|
||||
// Load root .env so worker tests receive DATABASE_URL / TEST_DATABASE_URL
|
||||
// when running `pnpm test` from the workspace root.
|
||||
config({ path: path.resolve(__dirname, "../../.env") });
|
||||
|
||||
export default defineConfig({
|
||||
test: {
|
||||
environment: "node",
|
||||
globals: false,
|
||||
},
|
||||
});
|
||||
Reference in New Issue
Block a user