We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 51a31d3 commit 46415a2Copy full SHA for 46415a2
docs/react-testing-library/example-intro.md
@@ -39,6 +39,10 @@ test('loads and displays greeting', async () => {
39
})
40
```
41
42
+> We recommend using [Mock Service Worker](https://github.com/mswjs/msw) library
43
+> to declaratively mock API communication in your tests instead of stubbing
44
+> `window.fetch`, or relying on third-party adapters.
45
+
46
---
47
48
## Step-By-Step
@@ -50,7 +54,6 @@ test('loads and displays greeting', async () => {
50
54
import React from 'react'
51
55
52
56
// import API mocking utilities from Mock Service Worker
53
-// (see https://github.com/mswjs/msw)
57
import { rest } from 'msw'
58
import { setupServer } from 'msw/node'
59
0 commit comments