Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Test React Components with Jest and React Testing Library on TestingJavaScript.com

License

NotificationsYou must be signed in to change notification settings

kentcdodds/react-testing-library-course

Repository files navigation


Course material for testing React components using react-testing-library

  • react-dom.js - Render a React component for testing
  • jest-dom.js - Use jest-dom for improved assertions
  • dom-testing-library.js - Use dom-testing-library to write more maintainableReact tests
  • react-testing-library.js - Use react-testing-library to render and testReact Components
  • localized.js - Testing localized content with react-testing-library
  • state.js - Test React Component state changes with react-testing-library
  • prop-updates.js - Test prop updates with react-testing-library
  • a11y.js - Test accessibility of rendered React Components with jest-axe
  • dependency-injection.js - Mock HTTP Requests with Dependency Injection inReact Component Tests
  • http-jest-mock.js - Mock HTTP Requests with jest.mock in React ComponentTests
  • mock-component.js - Mock react-transition-group in React Component Testswith jest.mock
  • error-boundaries.js - Test componentDidCatch handler error boundaries withreact-testing-library
  • tdd-markup.js - Test drive the development of a React Form withreact-testing-library
  • tdd-functionality.js - TDD the functionality of a React Form withreact-testing-library
  • react-router.js - Test react-router Provider history object in ReactComponent Tests with createMemoryHistory
  • redux.js - Test a redux connected React Component
  • custom-hook.js - Test a custom hook
  • portals.js - Test React portals
  • unmounting.js - Test Unmounting a React Component with react-testing-library
  • app.js - Testing the full application.

Note: the setup for this project uses kcd-scripts. Don't worry about that. Youcan learn about how to configure jest properly in the "Configure Jest forTesting JavaScript Applications" module of TestingJavaScript.com

About

Test React Components with Jest and React Testing Library on TestingJavaScript.com

Topics

Resources

License

Code of conduct

Contributing

Stars

Watchers

Forks

Contributors11


[8]ページ先頭

©2009-2025 Movatter.jp