Skip to content

Commit 85fd479

Browse files
committed
fix: update the usage example in readme
1 parent 9c65ff1 commit 85fd479

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,12 @@ npm i msw @msw/playwright
3030
```ts
3131
// playwright.setup.ts
3232
import { test as testBase } from '@playwright/test'
33-
import { createNetworkFixture, type NetworkFixture } from '@msw/playwright'
33+
import { type AnyHandler } from 'msw'
34+
import { defineNetworkFixture, type NetworkFixture } from '@msw/playwright'
3435
import { handlers } from '../mocks/handlers.js'
3536

3637
interface Fixtures {
38+
handlers: Array<AnyHandler>
3739
network: NetworkFixture
3840
}
3941

0 commit comments

Comments
 (0)