A TDD approach followed React JS project to implement sorting filtering and searching on a list of data { used list of Rich Celebrities in here }
install dependencies { bare minimum }
npm install
Run Project as:
npm start
Test project as:
npm run test
Test Coverage for project can be generated as
npm run test -- --coverage Testing has been achieved by using Jest https://facebook.github.io/jest/docs/getting-started.html#content and Enzyme https://github.com/airbnb/enzyme
At the time of submitting the first set of code ( almost complete ) the code coverage was > 96%
For Linting:
eslint and eslint plugin for react has been used
Production build
npm run build it will generate a build folder having minified files