react-test icon indicating copy to clipboard operation
react-test copied to clipboard

Uses Jest and Enzyme for testing React components.

react-test

The project tests react components with Jest and Enzyme. The tests are in __tests__ folder.

  • npm start - to run web application at http://localhost:8080
  • jest - to run jest tests.

Four test suites:

  • Basic Hello world testing.
  • Testing structure.
  • Testing behaviour.
  • Testing component interactions.

The [CodeMentor tutorial] (https://www.codementor.io/react/tutorial/unit-testing-react-components-jest-or-enzyme) walks through the project in more detail.