Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,17 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
uses: actions/checkout@v7.0.1
with:
fetch-depth: 0

- name: Set up pnpm
uses: pnpm/action-setup@v4
uses: pnpm/action-setup@v6.1.0
with:
version: 9.14.0
version: 11.27.1

- name: Set up Node.js
uses: actions/setup-node@v4
uses: actions/setup-node@v7.0.0
with:
node-version: 22
cache: 'pnpm'
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,20 +15,20 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
uses: actions/checkout@v7.0.1
with:
fetch-depth: 0
token: ${{ secrets.GH_ADMIN_TOKEN }}

- name: Set up pnpm
uses: pnpm/action-setup@v4
uses: pnpm/action-setup@v6.1.0
with:
version: 9.15.0
version: 11.27.1

- name: Set up Node.js
uses: actions/setup-node@v4
uses: actions/setup-node@v7.0.0
with:
node-version: 24
node-version: 22

- name: Setup Git
run: |
Expand All @@ -50,7 +50,7 @@ jobs:
- name: Type tests
run: pnpm test:ts

- name: Lint
- name: Lint package
run: pnpm lint

- name: Release
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,6 @@ test('displays the user dashboard', async ({ network, page }) => {

| | `playwright-msw` | `@msw/playwright` |
| -------------- | ------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- |
| Initialization | `createWorkerFixture()` is used as a _part_ of your custom fixture. | `createNetworkFixture()` creates _the entire_ fixture for you, pre-configured. |
| Initialization | `createWorkerFixture()` is used as a _part_ of your custom fixture. | `defineNetworkFixture()` creates _the entire_ fixture for you, pre-configured. |
| Implementation | Uses a custom router to match handlers and a custom wrapper around `SetupWorker` API. | Uses MSW directly. Uses `page.route()` as the source of the network to route through the handlers. |
| Feature set | Supports `http` and `graphql` namespaces. | Supports all namespaces (`http`, `graphql`, `ws`, any other APIs exposed by MSW in the future). |
34 changes: 16 additions & 18 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,7 @@
"main": "./build/index.mjs",
"types": "./build/index.d.mts",
"exports": {
".": {
"types": "./build/index.d.mts",
"default": "./build/index.mjs"
}
".": "./build/index.mjs"
},
"scripts": {
"dev": "tsdown --watch",
Expand Down Expand Up @@ -47,27 +44,28 @@
"access": "public"
},
"engines": {
"node": ">=20.0.0"
"node": ">=22.0.0"
},
"packageManager": "pnpm@11.27.1",
"peerDependencies": {
"msw": "^2.12.10"
"msw": ">=3"
},
"devDependencies": {
"@epic-web/test-server": "^0.1.6",
"@ossjs/release": "^0.10.1",
"@playwright/test": "^1.59.1",
"@ossjs/release": "^0.11.2",
"@playwright/test": "^1.63.0",
"@types/node": "^22.15.29",
"@types/sinon": "^21.0.1",
"msw": "^2.12.14",
"publint": "^0.3.18",
"sinon": "^21.0.3",
"tsdown": "^0.21.7",
"typescript": "^5.9.3",
"vite": "^7.3.1",
"vitest": "^4.1.2"
"@types/sinon": "^22.0.0",
"msw": "^3.0.0",
"publint": "^0.3.24",
"sinon": "^22.1.0",
"tsdown": "^0.23.0",
"typescript": "^7.0.2",
"vite": "^8.3.1",
"vitest": "^5.0.2"
},
"dependencies": {
"@mswjs/interceptors": "^0.41.3",
"@mswjs/interceptors": "^0.45.5",
"outvariant": "^1.4.3"
}
}
}
Loading
Loading