Skip to content

r-walsh/react-unit-test-practice

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

react-unit-test-practice

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 time
  • npm run test:watch - Continuously runs the test suite on file change
  • npm run test:coverage - Prints out a coverage report to console
  • npm run view-coverage - Launches an HTML view of code coverage, with detailed information on how well pieces of code are covered
  • npm run dev - Runs the project on port 8080 via webpack dev server with webpack-dashboard
  • npm run prettier - Why code if it can't be beautiful?

Releases

No releases published

Packages

No packages published