项目
在 GitHub 查看
kentcdodds/react-testing-library-course
关于
在 TestingJavaScript.com 上学习使用 Jest 和 React Testing Library 测试 React 组件。
网站与应用开发实测星标增长
- 24小时
- 0
- 7天
- +1
- 15天
- +1
- 1个月
- +1
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文Test React Components with Jest and React Testing Library
Course material for testing React components using react-testing-library
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.js- Test react-router Provider history object in React Component Tests with createMemoryHistoryredux.js- Test a redux connected React Componentcustom-hook.js- Test a custom hookportals.js- Test React portalsunmounting.js- Test Unmounting a React Component with react-testing-libraryapp.js- Testing the full application.
Note: the setup for this project uses kcd-scripts. Don't worry about that. You can learn about how to configure jest properly in the "Configure Jest for Testing JavaScript Applications" module of TestingJavaScript.com
探索相关项目
加载中…