Skip to content

Commit

Permalink
feat: support mocking WebSocket APIs (#2011)
Browse files Browse the repository at this point in the history
Co-authored-by: Daniëlle Huisman <danielle@huisman.me>
  • Loading branch information
kettanaito and DanielleHuisman authored Oct 29, 2024
1 parent 562fac9 commit ae786f5
Show file tree
Hide file tree
Showing 63 changed files with 5,291 additions and 108 deletions.
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,5 @@ msw-*.tgz
# Smoke test temporary files.
/package.json.copy
/examples

tsconfig.vitest-temp.json
/test/modules/node/node-esm-tests
tsconfig.vitest-temp.json
9 changes: 9 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,12 @@
"import": "./lib/core/graphql.mjs",
"default": "./lib/core/graphql.js"
},
"./core/ws": {
"types": "./lib/core/ws.d.ts",
"require": "./lib/core/ws.js",
"import": "./lib/core/ws.mjs",
"default": "./lib/core/ws.js"
},
"./mockServiceWorker.js": "./lib/mockServiceWorker.js",
"./package.json": "./package.json"
},
Expand Down Expand Up @@ -138,6 +144,7 @@
"@bundled-es-modules/tough-cookie": "^0.1.6",
"@inquirer/confirm": "^5.0.0",
"@mswjs/interceptors": "^0.36.5",
"@open-draft/deferred-promise": "^2.2.0",
"@open-draft/until": "^2.1.0",
"@types/cookie": "^0.6.0",
"@types/statuses": "^2.0.4",
Expand All @@ -154,6 +161,7 @@
"devDependencies": {
"@commitlint/cli": "^18.4.4",
"@commitlint/config-conventional": "^18.4.4",
"@fastify/websocket": "^8.3.1",
"@open-draft/test-server": "^0.4.2",
"@ossjs/release": "^0.8.1",
"@playwright/test": "^1.48.0",
Expand All @@ -177,6 +185,7 @@
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-prettier": "^5.2.1",
"express": "^5.0.0",
"fastify": "^4.26.0",
"fs-extra": "^11.2.0",
"fs-teardown": "^0.3.0",
"glob": "^11.0.0",
Expand Down
Loading

0 comments on commit ae786f5

Please sign in to comment.