Skip to content

Commit

Permalink
Adding js unit tests instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
lotif committed Apr 25, 2024
1 parent 714b6fa commit 371bf7f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
9 changes: 7 additions & 2 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
```
Expand All @@ -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).
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 371bf7f

Please sign in to comment.