Skip to content

SaraVieira/testing-react-workshop

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

testing-react-workshop

WTF ?

  • Why testing ?
  • Let's create a simple test asserter
  • Install Jest
  • Test JS
  • Why react changed the idea of test
  • Install Enzyme
  • Configure Enzyme
  • Go over how to check for number of elements and stuff like that with enzyme
  • Check state and props with enzyme
  • Snapshot testing and the difference between shallow, mount and render
  • Snapshot testing

Online Stuff:

Create a simple test asserter:

Test JS:

Test React:

Test react with state and simulate clicks:

About

Materials yo

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published