Skip to content
JS
Package

jest-websocket-mock

Mock websockets and assert complex websocket interactions with Jest

v2.5.0, 10 Sept 2023MITESM + CommonJSTypes: BundledTestingWebSockets and realtime
$ npm install jest-websocket-mock

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
0100k200k300k400kSept 2025Mar 2026Sept 2026High 302.3k (25 Aug 2026)Low 69.5k (23 Dec 2025)
Weekly npm downloads, one point per week, weeks starting 23 Sept 2025 to 15 Sept 2026. The y axis starts at zero.

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
  • jsDelivrhttps://cdn.jsdelivr.net/npm/jest-websocket-mock@2.5.0/
  • unpkghttps://unpkg.com/jest-websocket-mock@2.5.0/
  • esm.shhttps://esm.sh/jest-websocket-mock@2.5.0
PackageWeekly downloadsGzipLast releaseModuleComparison
vitest-websocket-mock67.3k-14 days agoESM only-
jest-useragent-mock46.6k-6 years agoCommonJS-
jest-mock-vscode26k-1 month agoCommonJS-
jest-google-maps-mock5k-5 years agoCommonJS-
mocksse6k-4 years agoCommonJS-
jest-localstorage-mock281k-3 years agoESM + CommonJS-
mock-match-media31.2k-11 months agoESM + CommonJS-
@copilotkit/aimock1.1m-2 days agoESM + CommonJS-
Sources: npm registry, npm downloads API, GitHub API. Data fetched 25 Sept 2026.

Indexability: Indexed.