Skip to content

Commit ae786f5

Browse files
kettanaitoDanielleHuisman
andauthoredOct 29, 2024
feat: support mocking WebSocket APIs (#2011)
Co-authored-by: Daniëlle Huisman <danielle@huisman.me>
1 parent 562fac9 commit ae786f5

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

63 files changed

+5291
-108
lines changed
 

‎.gitignore

+2-2
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,5 @@ msw-*.tgz
1818
# Smoke test temporary files.
1919
/package.json.copy
2020
/examples
21-
22-
tsconfig.vitest-temp.json
21+
/test/modules/node/node-esm-tests
22+
tsconfig.vitest-temp.json

‎package.json

+9
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,12 @@
5858
"import": "./lib/core/graphql.mjs",
5959
"default": "./lib/core/graphql.js"
6060
},
61+
"./core/ws": {
62+
"types": "./lib/core/ws.d.ts",
63+
"require": "./lib/core/ws.js",
64+
"import": "./lib/core/ws.mjs",
65+
"default": "./lib/core/ws.js"
66+
},
6167
"./mockServiceWorker.js": "./lib/mockServiceWorker.js",
6268
"./package.json": "./package.json"
6369
},
@@ -138,6 +144,7 @@
138144
"@bundled-es-modules/tough-cookie": "^0.1.6",
139145
"@inquirer/confirm": "^5.0.0",
140146
"@mswjs/interceptors": "^0.36.5",
147+
"@open-draft/deferred-promise": "^2.2.0",
141148
"@open-draft/until": "^2.1.0",
142149
"@types/cookie": "^0.6.0",
143150
"@types/statuses": "^2.0.4",
@@ -154,6 +161,7 @@
154161
"devDependencies": {
155162
"@commitlint/cli": "^18.4.4",
156163
"@commitlint/config-conventional": "^18.4.4",
164+
"@fastify/websocket": "^8.3.1",
157165
"@open-draft/test-server": "^0.4.2",
158166
"@ossjs/release": "^0.8.1",
159167
"@playwright/test": "^1.48.0",
@@ -177,6 +185,7 @@
177185
"eslint-config-prettier": "^9.1.0",
178186
"eslint-plugin-prettier": "^5.2.1",
179187
"express": "^5.0.0",
188+
"fastify": "^4.26.0",
180189
"fs-extra": "^11.2.0",
181190
"fs-teardown": "^0.3.0",
182191
"glob": "^11.0.0",

0 commit comments

Comments
 (0)