Skip to content
Myr

fix(docs): correct react-dom test utils import path (#3474)

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Aleksei Kharitonov · committed by GitHub · parent c7516c1 · Browse files · 1 file+1 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Trailers

  • Co-authored-by: Danilo Britto <dbritto.dev@gmail.com>

Diff stats

1 file+1 added−1 removed

  • other:+1 added−1 removed

1 file+1 added−1 removed

modified:docs/learn/guides/testing.md+1 added-1 removed
24 unmodified lines
2526**We recommend using [React Testing Library (RTL)](https://testing-library.com/docs/react-testing-library/intro)27to test out React components that connect to Zustand**. RTL is a simple and complete React DOM28testing utility that encourages good testing practices. It uses ReactDOM's `render` function and29`act` from `react-dom/tests-utils`. Furthermore, [Native Testing Library (RNTL)](https://testing-library.com/docs/react-native-testing-library/intro)29`act` from `react-dom/test-utils`. Furthermore, [Native Testing Library (RNTL)](https://testing-library.com/docs/react-native-testing-library/intro)30is the alternative to RTL to test out React Native components. The [Testing Library](https://testing-library.com/)31family of tools also includes adapters for many other popular frameworks.3233We also recommend using [Mock Service Worker (MSW)](https://mswjs.io/) to mock network requests, as
708 unmodified lines