Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions docs/react-testing-library/example-intro.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -66,10 +66,12 @@ test('loads and displays greeting', async () => {
See the following sections for a detailed breakdown of the test

:::note

We recommend using the
[Mock Service Worker (MSW)](https://github.com/mswjs/msw) library to
declaratively mock API communication in your tests instead of stubbing
`window.fetch`, or relying on third-party adapters.

:::

```jsx title="__tests__/fetch.test.jsx"
Expand Down