Reactjs Testing
Reactjs Testing
Reactjs Testing
testing
Agenda
What is software testing
ReactJS
Rest API Proxy API
part
goo.gl/9zC48K
Common ways of testing ReactJS Components
ReactTestUtils
Jest (Facebook)
Enzyme (Airbnb)
What is Enzyme?
goo.gl/9zC48K
Enzyme
ReactWrapper:
.find(selector)
shallow(<YourComponent />)
.parents()
etc...
Props mocking
The simplest test
Another one
Initial test
Header test
State processing
MountWithTheme
Enzyme known issues
Better documentation