Skip to content
This repository was archived by the owner on Oct 11, 2022. It is now read-only.

Commit 668e264

Browse files
committed
Update testing docs
1 parent 3dadd10 commit 668e264

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

docs/testing/integration.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,14 @@
22

33
# Integration tests
44

5-
We use [Cypress](https://cypress.io) to run our integration tests, which gives you a nice GUI that you can use for your test runs. To run integration tests you have to have both api and the client running. You also need API to be connected to the test database, which you do by setting `TEST_DB`:
5+
We use [Cypress](https://cypress.io) to run our integration tests, which gives you a nice GUI that you can use for your test runs. To run integration tests you have to have the api running in production mode and connected to the test database and the client running.
66

77
```sh
8-
# In one tab
9-
TEST_DB=true yarn run dev:api
10-
# In another tab
8+
# First, build the API
9+
yarn run build:api
10+
# Then, in one tab start the API in test mode
11+
yarn run start:api:test
12+
# In another tab start the web client
1113
yarn run dev:web
1214
```
1315

0 commit comments

Comments
 (0)