Skip to content

Latest commit

 

History

History
9 lines (6 loc) · 188 Bytes

testing.md

File metadata and controls

9 lines (6 loc) · 188 Bytes

React / Testing

Unit testing

What to test

  • Conditionals (both sides)
  • State and its changes
  • Rendered components (e.g. expect(wrapper.find(MyComponent)).toHaveLength(1);)