Skip to content

Commit

Permalink
updates instructions to add environmental variables for testing
Browse files Browse the repository at this point in the history
  • Loading branch information
agnlez committed Apr 25, 2024
1 parent cf98602 commit 4915af7
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions client/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 4915af7

Please sign in to comment.