Skip to content

Commit

Permalink
docs: update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
allanhvam committed Oct 1, 2024
1 parent d615616 commit 021ebe9
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,17 @@ const tenant = {
the handlers to the specific setup function:

```
import { handlers } from 'msw-sp';
// Node.js
import { setupServer } from 'msw/node'
import { handlers } from 'msw-sp';
export const server = setupServer(...handlers({ tenant }));
// Browser
import { setupServer } from 'msw/browser'
import { handlers } from 'msw-sp';
export const worker = setupWorker(...handlers({ tenant }));
```

Expand Down

0 comments on commit 021ebe9

Please sign in to comment.