Skip to content

Commit

Permalink
docs: Update running-the-api.md (#193)
Browse files Browse the repository at this point in the history
  • Loading branch information
veh3546 committed Apr 27, 2024
1 parent 90b8ff2 commit 3d5bcac
Showing 1 changed file with 7 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,16 @@ We currently perform two kinds of tests: **unit tests** and **integration tests.
After you make sure that you have added your unit tests, or you have made some changes to the existing functionality, you can run them using:

```bash
pnpm run test:api
pnpm run unit:api
```

After this is complete, you can run the integration tests. But for that, you would first need your test DB to be up and running. These commands will do of that for you.
After this is complete, you can run end-to-end tests to validate your entire application from start to finish. Use this command:

```bash
docker compose up -d
pnpm run e2e:api
docker compose down
```

You can also skip these first two commands and perform the unit and e2e tests at the same time with:
```bash
pnpm run test:api
```

0 comments on commit 3d5bcac

Please sign in to comment.