- make sure to have
node
andnpm
installed oryarn
- get into the project folder and run
npm install
oryarn install
- Now you can run the app by running this command
npm start
- I've deployed the app into a free dyno host on heroku and you can check it out from here (keep in mind that it might take longer for the first load)
- this would be a good solution to checkout the task in action faster.
- The application is created using the
create-react-app
tool - I've used mocked data from a json file in the src folder
api.json
that loads some brands and some equevelant models for testing purposes, and it can be replaced by a real API easily.
- used
jest
andenzyme
for rendering - you can run unit testing using
npm test
- you can also run unit testing coverage using
npm run test:coverage
- Unit Testing with jest and enzyme - Part 1 [Arabic Video]
- Unit Testing with jest and enzyme - Part 2 [Arabic Video]
Created by: Medhat Dawoud (@med7atdawoud)