Skip to content

Latest commit

 

History

History
17 lines (10 loc) · 856 Bytes

README.md

File metadata and controls

17 lines (10 loc) · 856 Bytes

nightwatch/testing-library example

Test your React Components with Nightwatch and Testing Library

More details on the @nightwatch/testing-library repo.

Step-by-step tutorial available at: https://nightwatchjs.org/blog/test-your-react-components-with-nightwatch-and-testing-library/

The text covers how to:

  1. set up a new React project with Vite, which is also what Nightwatch uses internally for component testing;
  2. install and configure Nightwatch and Testing Library;
  3. mock API requests using the @nightwatch/api-testing plugin;
  4. write a complex React component test using Nightwatch and Testing Library.

PRs are welcome. Fell free to drop by the Nightwatch Discord if you have any questions or feedback.