From ccb013ee48fed527eb7b0fab1b5c4707859da159 Mon Sep 17 00:00:00 2001 From: Wing-Kam Wong Date: Mon, 13 Feb 2023 11:59:27 +0800 Subject: [PATCH] docs: correct unit test directory path --- packages/noco-docs/content/en/engineering/unit-testing.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/noco-docs/content/en/engineering/unit-testing.md b/packages/noco-docs/content/en/engineering/unit-testing.md index 4d0b48c13f..ad9716903c 100644 --- a/packages/noco-docs/content/en/engineering/unit-testing.md +++ b/packages/noco-docs/content/en/engineering/unit-testing.md @@ -43,7 +43,7 @@ npm run test:unit ### Folder Structure -The root folder for unit tests is `packages/tests/unit` +The root folder for unit tests is `packages/nocodb/tests/unit` - `rest` folder contains all the test suites for rest apis. - `model` folder contains all the test suites for models. @@ -69,7 +69,7 @@ We will create an `Table` test suite as an example. #### Configure test -We will configure `beforeEach` which is called before each test is executed. We will use `init` function from `nocodb/packages/tests/unit/init/index.ts`, which is a helper function which configures the test environment(i.e resetting state, etc.). +We will configure `beforeEach` which is called before each test is executed. We will use `init` function from `nocodb/packages/nocodb/tests/unit/init/index.ts`, which is a helper function which configures the test environment(i.e resetting state, etc.). `init` does the following things -