Skip to content

Commit

Permalink
Update running-the-api.md
Browse files Browse the repository at this point in the history
  • Loading branch information
veh3546 authored Apr 25, 2024
1 parent 90b8ff2 commit be6ff3b
Showing 1 changed file with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,18 +26,16 @@ pnpm run dev:api

## Testing your code

We currently perform two kinds of tests: **unit tests** and **integration tests.** 
We currently perform two kinds of tests: **unit tests** and **e2e 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
```

0 comments on commit be6ff3b

Please sign in to comment.