Skip to content
Agents tracked: 506 Releases (7d): 634 Agent status: 3 with issuesSince last limit reset: Claude 15d · Codex 0d For AI agents: Markdown Updated Nov 26, 2026

Sinon.JS

Test spies, stubs and mocks library for JavaScript unit and integration testing.

TestingNPM

GitHubWebsite

1. License

License from npm.

github.com/sinonjs/sinon

From the package registry and GitHub, checked daily. Tap a verdict to see its source.How we checkedReport an error

What Sinon.JS does

Test spies, stubs and mocks library for JavaScript unit and integration testing.

Sinon.JS popularity

64 / 100
Gid Score, #739 overall
13.4M
downloads a week, npm
9,750
GitHub stars
16
agent projects use it
Sinon.JS: downloads per weeknpm, sinon 13,367,384
Sinon.JS: GitHub starssinonjs/sinon 9,750

Gid Score measures public popularity and activity, not quality. How the Gid Score is calculated

How Sinon.JS is used

  • Sinon.JS is a dependency in 16 of the 6,258 public GitHub projects set up for AI coding agents that we scanned, too few to describe it from them alone. Our scan also samples projects by dependency (Solana 3,067, Ethereum and EVM 1,774, 3D and games 3,130, agent frameworks and SDKs 13,750); counting those, it appears in 64 projects, and what it is used with below comes from all of them.
  • The most used alternative in our scan is Chai (20 projects).
  • Projects that use it most often also use Mocha (68.8%), Chai (51.6%), rimraf (42.2%).

By coding agent

10 projects, 0.3%
9 projects, 0.4%
9 projects, 0.3%

Often used with

In 68.8% of its projects
In 51.6% of its projects
In 42.2% of its projects
In 71.9% of its projects
In 35.9% of its projects
In 31.2% of its projects
In 29.7% of its projects
In 28.1% of its projects

More about Sinon.JS

Funding
  • GitHub Sponsors: https://github.com/sinonjs
  • Open Collective: https://opencollective.com/sinon
  • 1 GitHub sponsors

See all

More in Testing

Alternatives

Sinon.JS This page

BSD-3-ClauseGid 6413.4M/wk

Chai

BDD/TDD assertion library for Node.js and browsers with expressive syntax.

MITGid 76222M/wk

Compare Sinon.JS with another tool

Get started

Install it.

npm install sinon

No step-by-step start for Sinon.JS yet: we have not written its hand-checked card.