@msw/playwright 0.6.0 → 0.6.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +3 -1
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -30,10 +30,12 @@ npm i msw @msw/playwright
30
30
  ```ts
31
31
  // playwright.setup.ts
32
32
  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'
34
35
  import { handlers } from '../mocks/handlers.js'
35
36
 
36
37
  interface Fixtures {
38
+ handlers: Array<AnyHandler>
37
39
  network: NetworkFixture
38
40
  }
39
41
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "type": "module",
3
3
  "name": "@msw/playwright",
4
- "version": "0.6.0",
4
+ "version": "0.6.1",
5
5
  "description": "Mock Service Worker binding for Playwright",
6
6
  "main": "./build/index.js",
7
7
  "types": "./build/index.d.ts",