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

This commit is contained in:
Akhil Mohan
2024-02-15 21:06:18 +05:30
parent 4f3cf046fa
commit b84579b866
2 changed files with 8 additions and 1 deletions

7
.env.test.example Normal file
View File

@@ -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

View File

@@ -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",