🧪Running Tests
Client Tests
The client tests are located in the client/src directory and utilize .test.js extensions. They are built using Jest and React Testing Library.
Install Dependencies:
cd client
npm installRun Tests:
npm testThis command launches the test runner in interactive watch mode. It runs all test files and provides feedback on test results.
Server Tests
The server tests are located in the server/tests directory and are implemented using unittest.
Install Dependencies:
cd ../server
python -m venv venv
source venv/bin/activate # On Windows use `venv\Scripts\activate`
pip install -r requirements.txtRun Tests:
python3 -m unittest discover -s tests -p 'test_*.py'
This command discovers and runs all test files (test_*.py) in the server/tests directory using unittest.
Last updated