Skip to content
JS
Comparison

mock-socket vs ts-mockito

TestingPackage data 25 Sept 2026
mock-socketv9.3.1, 11 Sept 2023

Javascript mocking library for websockets and socket.io

$ npm install mock-socket
ts-mockitov2.6.1, 8 Jun 2020

Mocking library for TypeScript

$ npm install ts-mockito
Metricmock-socketts-mockitoDifference
Weekly downloads684,522172,040mock-socket 4.0x higher
12-month download growth+56%+1%mock-socket +54 pts
Gzip size---
Minified size---
Dependencies01ts-mockito 1 more
Unpacked size326 kB128 kBts-mockito 2.6x smaller
Latest release9.3.1, 11 Sept 20232.6.1, 8 Jun 2020mock-socket 3.3 years more recent
Releases, last 12 months0--
First published27 Nov 2014--
GitHub stars806997ts-mockito +24%
Open issues6574ts-mockito 9 more
Open pull requests1017ts-mockito 7 more
Contributors---
Commits, last 52 weeks00Same
TypeScript typesNoneBundledDiffers
Module formatCommonJSCommonJSSame
Runtimes---
LicenseMITMITSame

Green marks the smaller size or the more recent release. Bold marks the higher count, with no judgement implied. Sizes are for the whole package per Bundlephobia. Growth compares the average of the last 4 weeks with the first 4 weeks of the 52-week series.

mock-socket684.5k latest weekts-mockito172k latest week
Week of 23 Sept 2025Week of 15 Sept 2026
Weekly npm downloads, 52 weeks. Y axis starts at zero. Values are not smoothed.

mock-socket

Major versions
  1. 0.0.127 Nov 2014
  2. 1.0.022 Dec 2015
  3. 2.0.013 Jan 2016
  4. 3.0.06 Jun 2016
  5. 4.0.03 Aug 2016
  6. 5.0.06 Sept 2016
  7. 6.0.031 Oct 2016
  8. 7.0.04 Aug 2017
  9. 8.0.05 Jul 2018
  10. 9.0.029 Jul 2019
Last 5 releases
  1. 9.3.111 Sept 2023
  2. 9.3.05 Sept 2023
  3. 9.2.114 Feb 2023
  4. 9.2.09 Feb 2023
  5. 9.1.57 Jun 2022
71 releases in total, 0 in the last 12 months

ts-mockito

Major versions
  1. -
Last 5 releases
  1. -
Release count not fetched
mock-socket

-

ts-mockito

-

mock-socket

-

ts-mockito

-

  • Need no runtime dependenciesmock-socket (mock-socket has 0, ts-mockito has 1)
  • Module formatBoth CommonJS
  • Need TypeScript types in the package itselfts-mockito (mock-socket: None; ts-mockito: Bundled)
  • Node.js version requirementmock-socket: >= 8; ts-mockito: none declared (engines field in package.json)
  • Need the more recent releasemock-socket (9.3.1 on 11 Sept 2023 vs 2.6.1 on 8 Jun 2020)
  • Higher weekly npm downloadsmock-socket (684.5k vs 172k)

Each line is generated from the data above.

mock-socket: mock-socket npm registry, mock-socket npm downloads, mock-socket GitHub. Data fetched 25 Sept 2026.
ts-mockito: ts-mockito npm registry, ts-mockito npm downloads, ts-mockito GitHub. Data fetched 25 Sept 2026.

Indexability: Indexed.