From be6ff3ba4d37856eaf8f61c646c32216c1635913 Mon Sep 17 00:00:00 2001 From: veh3546 <113540609+veh3546@users.noreply.github.com> Date: Thu, 25 Apr 2024 09:37:48 -0400 Subject: [PATCH] Update running-the-api.md --- .../running-things-locally/running-the-api.md | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/docs/contributing-to-keyshade/running-things-locally/running-the-api.md b/docs/contributing-to-keyshade/running-things-locally/running-the-api.md index 2a472974..a34011cb 100644 --- a/docs/contributing-to-keyshade/running-things-locally/running-the-api.md +++ b/docs/contributing-to-keyshade/running-things-locally/running-the-api.md @@ -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 ```