Skip to content

Commit 01b1084

Browse files
committed
docs: feature "msw/http" imports in README examples
1 parent e73c381 commit 01b1084

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎README.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ In-browser usage is what sets Mock Service Worker apart from other tools. Utiliz
6767

6868
```js
6969
// 1. Import the library.
70-
import { http, HttpResponse } from 'msw'
70+
import { http, HttpResponse } from 'msw/http'
7171
import { setupWorker } from 'msw/browser'
7272

7373
// 2. Describe network behavior with request handlers.
@@ -115,7 +115,7 @@ Here's an example of using Mock Service Worker while developing your Express ser
115115

116116
```js
117117
import express from 'express'
118-
import { http, HttpResponse } from 'msw'
118+
import { http, HttpResponse } from 'msw/http'
119119
import { setupServer } from 'msw/node'
120120

121121
const app = express()

0 commit comments

Comments
 (0)