From 816003b968f318ddd2848ad868b97855d7ccbec7 Mon Sep 17 00:00:00 2001 From: lucferbux Date: Wed, 8 Jan 2025 17:00:14 +0100 Subject: [PATCH] Add env test variable Signed-off-by: lucferbux --- clients/ui/.env.test | 1 + clients/ui/.gitignore | 2 ++ clients/ui/frontend/.env.test | 1 + .../frontend/src/__tests__/cypress/cypress/utils/testConfig.ts | 1 + 4 files changed, 5 insertions(+) create mode 100644 clients/ui/.env.test create mode 100644 clients/ui/frontend/.env.test diff --git a/clients/ui/.env.test b/clients/ui/.env.test new file mode 100644 index 00000000..afd93523 --- /dev/null +++ b/clients/ui/.env.test @@ -0,0 +1 @@ +APP_ENV=test diff --git a/clients/ui/.gitignore b/clients/ui/.gitignore index 93251d2f..a7dcdc1f 100644 --- a/clients/ui/.gitignore +++ b/clients/ui/.gitignore @@ -6,3 +6,5 @@ .DS_Store .env*.local + +!*.test diff --git a/clients/ui/frontend/.env.test b/clients/ui/frontend/.env.test new file mode 100644 index 00000000..42507480 --- /dev/null +++ b/clients/ui/frontend/.env.test @@ -0,0 +1 @@ +APP_ENV=test \ No newline at end of file diff --git a/clients/ui/frontend/src/__tests__/cypress/cypress/utils/testConfig.ts b/clients/ui/frontend/src/__tests__/cypress/cypress/utils/testConfig.ts index 630c911e..c9edfeb4 100644 --- a/clients/ui/frontend/src/__tests__/cypress/cypress/utils/testConfig.ts +++ b/clients/ui/frontend/src/__tests__/cypress/cypress/utils/testConfig.ts @@ -5,6 +5,7 @@ import dotenv from 'dotenv'; [ `.env.cypress${env.CY_MOCK ? '.mock' : ''}.local`, `.env.cypress${env.CY_MOCK ? '.mock' : ''}`, + '.env.test', '.env.local', '.env', ].forEach((file) =>