From a77b4a1b7e460146ae59706ae8943194839c7d31 Mon Sep 17 00:00:00 2001 From: Shahed Nasser Date: Tue, 13 Dec 2022 12:47:21 +0200 Subject: [PATCH] docs: changed the steps to run tests in local dev (#2786) --- docs/content/usage/local-development.md | 42 +++---------------------- 1 file changed, 5 insertions(+), 37 deletions(-) diff --git a/docs/content/usage/local-development.md b/docs/content/usage/local-development.md index 071558e75b..aade667607 100644 --- a/docs/content/usage/local-development.md +++ b/docs/content/usage/local-development.md @@ -76,54 +76,22 @@ yarn test ### Run API Integration Tests -API integration tests are used to test out Medusa’s core endpoints. To run the API integration tests: +API integration tests are used to test out Medusa’s core endpoints. -1. Change to the `integrations-tests/api` directory: +To run the API integration tests, run the following command in the root directory of the repository: ```bash -cd integration-tests/api +yarn test:integration:api ``` -2\. Install dependencies using Medusa’s dev CLI tool: - -```bash -medusa-dev --force-install --external-registry -``` - -3\. Run the test command: - -```bash -yarn test -``` - -:::info - -The `--force-install` option passed to `medusa-dev` ensures that the packages are installing from the local registry rather than copied as explained in [the next section](#test-in-a-local-server). - -::: - ### Run Plugin Integration Tests Plugin integration tests are used to test out Medusa’s official plugins, which are also stored in the `packages` directory in the repository. -To run the plugin integration tests: - -1. Change to the `integrations-tests/plugins` directory: +To run the plugin integration tests, run the following command in the root directory of the repository: ```bash -cd integration-tests/plugins -``` - -2\. Install dependencies using Medusa’s dev CLI tool: - -```bash -medusa-dev --force-install --external-registry -``` - -3\. Run the test command: - -```bash -yarn test +yarn test:integration:plugins ``` ## Test in a Local Server