A talk about testing React components with Jest & react-testing-library I gave at Woodlands Area Software Enthusiasts.
The main sources are
- deck.mdx - The slide deck
- square.js and square.test.js - The square function and its tests
- WikiSearch.js and WikiSearch.test.js - The React component and its tests
The other files are mainly for being displayed in the slides.
- To run the slides:
- To run the test suite:
- Kent C. Dodds:
- Write Tests. Not too many. Mostly integration.