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:
- set up a new React project with Vite, which is also what Nightwatch uses internally for component testing;
- install and configure Nightwatch and Testing Library;
- mock API requests using the
@nightwatch/api-testing
plugin; - 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.