From 4915af7506ce75789d23a94968b6954368e64091 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9s=20Gonz=C3=A1lez?= Date: Thu, 25 Apr 2024 17:49:50 +0200 Subject: [PATCH] updates instructions to add environmental variables for testing --- client/README.md | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/client/README.md b/client/README.md index 53afa1aec..e499ed570 100644 --- a/client/README.md +++ b/client/README.md @@ -26,11 +26,15 @@ yarn dev The application handles environmental variables using [@t3-oss/env-nextjs](https://env.t3.gg/docs). You can see the available (and required) variables in the `./src/env` file. **NOTE**: the application will NOT start if the required variables are not set previously. #### Testing -Additionally, and exclusively for testing purposes, you can set the following environmental variables: +Additionally, and exclusively for testing purposes, you can set the following environmental variables in the `cypress.env.json` file: -- `CYPRESS_USERNAME`: email to authenticate for the e2e tests. -- `CYPRESS_PASSWORD`: password to authenticate for the e2e tests. -- `CYPRESS_API_URL`: API used to run the e2e tests. +``` +{ + "USERNAME": "", // email to authenticate for the e2e tests. + "PASSWORD": "", // password to authenticate for the e2e tests. + "API_URL": "" // API used to run the e2e tests. +} +``` ### Running tests