Skip to content

Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.

feat(e2e): changed to root .env.test and added .env.test.example

Akhil Mohanb84579b86659
diff --git a/.env.test.example b/.env.test.example
new file mode 100644
index 0000000000..2bbeccb9c6
--- /dev/null
+++ b/.env.test.example
@@ -0,0 +1,7 @@
+DB_CONNECTION_URI=postgres://infisical:infisical@localhost:5430/infisical-test
+REDIS_URL=redis://redis:6379
+# Keys
+# Required key for platform encryption/decryption ops
+# THIS IS A SAMPLE ENCRYPTION KEY AND SHOULD NOT BE USED FOR PRODUCTION
+ENCRYPTION_KEY=6c1fe4e407b8911c104518103505b218
+AUTH_SECRET=something-random
diff --git a/backend/e2e-test/vitest-environment-knex.ts b/backend/e2e-test/vitest-environment-knex.ts
index 7125ab0fed..7c58fb0af9 100644
--- a/backend/e2e-test/vitest-environment-knex.ts
+++ b/backend/e2e-test/vitest-environment-knex.ts
@@ -15,7 +15,7 @@ import { AuthTokenType } from "@app/services/auth/auth-type";
import { mockQueue } from "./mocks/queue";
import { mockSmtpServer } from "./mocks/smtp";
-dotenv.config({ path: path.join(__dirname, "../.env.test") });
+dotenv.config({ path: path.join(__dirname, "../../.env.test"), debug: true });
export default {
name: "knex-env",
transformMode: "ssr",