- cd into /birdmig/backend
- enter
flask run
in your terminal
- cd into /birdmig
- enter
npm start
in your terminal
- Ensure that the Docker daemon is running
- Opening the Docker desktop app is the easiest way to ensure this step
cd
into/birdmig
- Build and run the containers with the command:
docker-compose up -d --no-deps --build
- Go to
http://localhost:3000
to observe changes.
This project uses Jest alongside @testing-library/react for testing React components.
Before running tests, make sure you have:
- Node.js installed on your system.
- All the project dependencies installed. If you haven't done so already, you can install them by running
npm install
in the project's root directory.
To run all the tests in the project, you can use the following command:
npm test
Running Tests with Coverage To run tests and generate a coverage report, you can use the following command:
npm test -- --coverage
This will not only test your components but also provide a detailed report of your test coverage.
Test files are located alongside the components they are testing, with a .test.js
or .test.jsx
file extension. For example, if you have a component in src/components/MyComponent.js
, its tests should be in src/components/MyComponent.test.js
.