Course material for testing React components using react-testing-library
I'm still working on the README. But here's the order these should be given in:
react-dom.js
- Render a React component for testingjest-dom.js
- Use jest-dom for improved assertionsdom-testing-library.js
- Use dom-testing-library to write more maintainable React testsreact-testing-library.js
- Use react-testing-library to render and test React Componentslocalized.js
- Testing localized content with react-testing-librarystate.js
- Test React Component state changes with react-testing-libraryprop-updates.js
- Test prop updates with react-testing-librarya11y.js
- Test accessibility of rendered React Components with jest-axedependency-injection.js
- Mock HTTP Requests with Dependency Injection in React Component Testshttp-jest-mock.js
- Mock HTTP Requests with jest.mock in React Component Testsmock-component.js
- Mock react-transition-group in React Component Tests with jest.mockerror-boundaries.js
- Test componentDidCatch handler error boundaries with react-testing-librarytdd-markup.js
- Test drive the development of a React Form with react-testing-librarytdd-functionality.js
- TDD the functionality of a React Form with react-testing-libraryreact-router-provider.js
- Test react-router Provider history object in React Component Tests with createMemoryHistoryredux.js
- Test a redux connected React Componentrender-props.js
- Test a render prop component using a Jest spy functionportals.js
- Test React portals with react-testing-library’swithin
APIunmounting.js
- Test Unmounting a React Component with react-testing-library