Skip to content

React Testing using Enzyme, Jest and testing-react-scripts libraries. These projects include all unit testing in TDD methadology.

License

Notifications You must be signed in to change notification settings

MaliJetal/react-testing-projects

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

react-testing-projects

React Testing using Enzyme, Jest and testing-react-scripts libraries. These projects include all unit testing in TDD methadology.

Enzyme:

  • it or test :You would pass a function to this method, and the test runner would execute that function as a block of tests.
  • describe : This optional method is for grouping any number of it or test statements. expect This is the condition that the test needs to pass. It compares the received parameter to the matcher. It also gives you access to a number of matchers that let you validate different things. You can read more about it in the documentation.
  • mount : This method renders the full DOM, including the child components of the parent component, in which we are running the tests.
  • shallow : This renders only the individual components that we are testing. It does not render child components. This enables us to test components in isolation.

About

React Testing using Enzyme, Jest and testing-react-scripts libraries. These projects include all unit testing in TDD methadology.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published