In this repo lives a simple To Do list that is lacking in testing. The ToDo
component has a full set of commented example tests to serve as a reference.
Your goal is to write tests for the other two components and reach 100% code coverage. Remember that 100% coverage doesn't mean perfect tests! Try to find edge cases and errors that may creep up. Not every bit of what you will need is covered in the example tests, you'll need to hit the docs:
NPM Commands(can all be found in the package.json
):
npm run test
- Runs the test suite a single timenpm run test:watch
- Continuously runs the test suite on file changenpm run test:coverage
- Prints out a coverage report to consolenpm run view-coverage
- Launches an HTML view of code coverage, with detailed information on how well pieces of code are coverednpm run dev
- Runs the project on port 8080 via webpack dev server with webpack-dashboardnpm run prettier
- Why code if it can't be beautiful?