From 371bf7f05ba2db5d193981cc950a687430ecd774 Mon Sep 17 00:00:00 2001 From: Marcelo Lotif Date: Thu, 25 Apr 2024 18:22:22 -0400 Subject: [PATCH] Adding js unit tests instructions --- CONTRIBUTING.md | 9 +++++++-- README.md | 4 ++-- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 5e62982..59c37f2 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -37,7 +37,7 @@ using [Homebrew](https://brew.sh/): brew install yarn ``` -Then install the project dependencies: +Then install the project dependencies in development mode: ```shell yarn ``` @@ -55,11 +55,16 @@ yarn dev ## Running the tests -To run the unit tests, simply execute: +To run the python unit tests, simply execute: ```shell pytest florist/tests/unit ``` +To run the nextjs unit tests, simply execute: +```shell +yarn test +``` + To run the integration tests, first make sure you: - Have a Redis server running on your local machine on port 6379 by following [these instructions](README.md#start-servers-redis-instance). - Have a MongoDB server running on your local machine on port 27017 by following [these instructions](README.md#start-mongodbs-instance). diff --git a/README.md b/README.md index c2c6f40..b829fa8 100644 --- a/README.md +++ b/README.md @@ -30,9 +30,9 @@ using [Homebrew](https://brew.sh/): brew install yarn ``` -Then install the project dependencies: +Then install the project dependencies in `prod` mode: ```shell -yarn +yarn --prod ``` ### Pulling Redis' Docker