Skip to content

nightwatchjs-community/testing-library-example

Repository files navigation

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.

About

Test your React Components with Nightwatch and Testing Library

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published