Package
vitest-websocket-mock
Mock websockets and assert complex websocket interactions with Vitest
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
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- jsDelivr
https://cdn.jsdelivr.net/npm/vitest-websocket-mock@0.8.0/ - unpkg
https://unpkg.com/vitest-websocket-mock@0.8.0/ - esm.sh
https://esm.sh/vitest-websocket-mock@0.8.0
| Package | Weekly downloads | Gzip | Last release | Module | Comparison |
|---|---|---|---|---|---|
| jest-websocket-mock | 212.9k | - | 3 years ago | ESM + CommonJS | - |
| vitest-canvas-mock | 819.6k | - | 20 days ago | ESM + CommonJS | - |
| jest-mock-vscode | 26k | - | 1 month ago | CommonJS | - |
| mocksse | 6k | - | 4 years ago | CommonJS | - |
| vitest-console | 10.4k | - | 11 months ago | ESM only | - |
| @copilotkit/aimock | 1.1m | - | 2 days ago | ESM + CommonJS | - |
| rewire | 509.2k | - | 1 year ago | CommonJS | - |
| fetch-mock-cache | 456.8k | - | 2 months ago | ESM only | - |
Indexability: Indexed.