Skip to content
JS
Package

vitest-websocket-mock

Mock websockets and assert complex websocket interactions with Vitest

v0.8.0, 10 Sept 2026MITESM onlyTypes: BundledTestingWebSockets and realtime
$ npm install vitest-websocket-mock

Key numbers

As of 25 Sept 2026
Weekly downloads
67.3k
+191% over 12 months
Gzip bundle size
-
No Bundlephobia data
Dependencies
1
Direct, from package.json
Last release
14 days ago
v0.8.0
GitHub stars
22
4 forks
Open issues / PRs
1 / 0
Contributors
-
Commits, last 52 weeks
157

Downloads

Last week 2026-09-15 to 2026-09-21
050k100k150kSept 2025Mar 2026Sept 2026High 102.9k (25 Aug 2026)Low 19k (30 Dec 2025)
Weekly npm downloads, one point per week, weeks starting 23 Sept 2025 to 15 Sept 2026. The y axis starts at zero.

67,260 downloads last week, 350,611 in the last month. The 12-month change of +191% compares the average of the last 4 weeks with the first 4 weeks of the series.

Releases, last 12 months
-
Latest version
0.8.0, 10 Sept 202614 days ago
First published
-
Last push to GitHub
23 Sept 20261 day before the snapshot
Repository archived
No
Open issues
1
Open pull requests
0
Commits, last 52 weeks
157
Dependents on npm
2

Major versions

-

Recent releases

-

Module format
ESM onlyFrom package.json type, main and exports fields
TypeScript types
Bundled
Node.js engine range
Not declared
Runtimes
-
Unpacked size (npm)
28 kB
Dependencies (1)
mock-socket
Peer dependencies (1)
vitest
npm install vitest-websocket-mock
  • jsDelivrhttps://cdn.jsdelivr.net/npm/vitest-websocket-mock@0.8.0/
  • unpkghttps://unpkg.com/vitest-websocket-mock@0.8.0/
  • esm.shhttps://esm.sh/vitest-websocket-mock@0.8.0
PackageWeekly downloadsGzipLast releaseModuleComparison
jest-websocket-mock212.9k-3 years agoESM + CommonJS-
vitest-canvas-mock819.6k-20 days agoESM + CommonJS-
jest-mock-vscode26k-1 month agoCommonJS-
mocksse6k-4 years agoCommonJS-
vitest-console10.4k-11 months agoESM only-
@copilotkit/aimock1.1m-2 days agoESM + CommonJS-
rewire509.2k-1 year agoCommonJS-
fetch-mock-cache456.8k-2 months agoESM only-
Sources: npm registry, npm downloads API, GitHub API. Data fetched 25 Sept 2026.

Indexability: Indexed.