Package
jest-websocket-mock
Mock websockets and assert complex websocket interactions with Jest
Key numbers
As of 25 Sept 2026
- Weekly downloads
- 212.9k
- +47% over 12 months
- Gzip bundle size
- -
- No Bundlephobia data
- Dependencies
- 2
- Direct, from package.json
- Last release
- 3 years ago
- v2.5.0
- GitHub stars
- 176
- 28 forks
- Open issues / PRs
- 11 / 1
- Contributors
- -
- Commits, last 52 weeks
- 0
Downloads
Last week 2026-09-15 to 2026-09-21
212,918 downloads last week, 1,025,867 in the last month. The 12-month change of +47% compares the average of the last 4 weeks with the first 4 weeks of the series.
- Releases, last 12 months
- -
- Latest version
- 2.5.0, 10 Sept 20233 years ago
- First published
- -
- Last push to GitHub
- 11 Feb 2024956 days before the snapshot
- Repository archived
- No
- Open issues
- 11
- Open pull requests
- 1
- Commits, last 52 weeks
- 0
- Dependents on npm
- 14
Major versions
-
Recent releases
-
- Module format
- ESM + CommonJSFrom package.json type, main and exports fields
- TypeScript types
- Bundled
- Node.js engine range
- Not declared
- Runtimes
- -
- Unpacked size (npm)
- 111 kB
- Dependencies (2)
jest-diffmock-socket
npm install jest-websocket-mock- jsDelivr
https://cdn.jsdelivr.net/npm/jest-websocket-mock@2.5.0/ - unpkg
https://unpkg.com/jest-websocket-mock@2.5.0/ - esm.sh
https://esm.sh/jest-websocket-mock@2.5.0
| Package | Weekly downloads | Gzip | Last release | Module | Comparison |
|---|---|---|---|---|---|
| vitest-websocket-mock | 67.3k | - | 14 days ago | ESM only | - |
| jest-useragent-mock | 46.6k | - | 6 years ago | CommonJS | - |
| jest-mock-vscode | 26k | - | 1 month ago | CommonJS | - |
| jest-google-maps-mock | 5k | - | 5 years ago | CommonJS | - |
| mocksse | 6k | - | 4 years ago | CommonJS | - |
| jest-localstorage-mock | 281k | - | 3 years ago | ESM + CommonJS | - |
| mock-match-media | 31.2k | - | 11 months ago | ESM + CommonJS | - |
| @copilotkit/aimock | 1.1m | - | 2 days ago | ESM + CommonJS | - |
Indexability: Indexed.