{"id":13454891,"url":"https://github.com/sinonjs/sinon","last_synced_at":"2025-12-17T00:52:01.259Z","repository":{"id":960133,"uuid":"747698","full_name":"sinonjs/sinon","owner":"sinonjs","description":"Test spies, stubs and mocks for JavaScript.","archived":false,"fork":false,"pushed_at":"2025-03-25T08:13:14.000Z","size":43693,"stargazers_count":9717,"open_issues_count":42,"forks_count":771,"subscribers_count":90,"default_branch":"main","last_synced_at":"2025-04-08T00:32:10.432Z","etag":null,"topics":["javascript","sinon","stub","stubs","tdd","test-driven-development","test-spies","unit-testing"],"latest_commit_sha":null,"homepage":"https://sinonjs.org/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"TV4/sunspot_mongoid","license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sinonjs.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGES.md","contributing":"CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":"sinonjs","open_collective":"sinon"}},"created_at":"2010-06-29T21:15:32.000Z","updated_at":"2025-04-06T20:41:09.000Z","dependencies_parsed_at":"2024-03-14T17:07:38.131Z","dependency_job_id":"f678deed-b3c4-4e0e-b4ec-b645f9d396fe","html_url":"https://github.com/sinonjs/sinon","commit_stats":{"total_commits":3079,"total_committers":417,"mean_commits":7.383693045563549,"dds":0.7187398506008444,"last_synced_commit":"80bc1d96371580a8b2dad39122db46933e7f5884"},"previous_names":["cjohansen/sinon.js"],"tags_count":213,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sinonjs%2Fsinon","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sinonjs%2Fsinon/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sinonjs%2Fsinon/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sinonjs%2Fsinon/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sinonjs","download_url":"https://codeload.github.com/sinonjs/sinon/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247761435,"owners_count":20991614,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["javascript","sinon","stub","stubs","tdd","test-driven-development","test-spies","unit-testing"],"created_at":"2024-07-31T08:00:59.030Z","updated_at":"2025-12-17T00:52:01.213Z","avatar_url":"https://github.com/sinonjs.png","language":"JavaScript","funding_links":["https://github.com/sponsors/sinonjs","https://opencollective.com/sinon"],"categories":["Packages","JavaScript","Repository","Programming","包","Testing Frameworks","目录","javascript","Test tools","Testing Frameworks [🔝](#readme)","Testing","测试框架","Number","Unit Testing","{{ Test }}"],"sub_categories":["Testing","JavaScript","测试","Assertion","测试相关","断言","Debug/Test"],"readme":"\u003ch1 align=center\u003e\n    \u003ca href=\"https://sinonjs.org\" title=\"Sinon.JS\"\u003e\n        \u003cimg alt=\"Sinon.JS\" src=\"https://sinonjs.org/assets/images/logo.png\"\u003e\n    \u003c/a\u003e\n    \u003cbr\u003e\n    Sinon.JS\n\u003c/h1\u003e\n\n\u003cp align=center\u003e\n    Standalone and test framework agnostic JavaScript test spies, stubs and mocks (pronounced \"sigh-non\", named after \u003ca href=\"https://en.wikipedia.org/wiki/Sinon\"\u003eSinon, the warrior\u003c/a\u003e).\n\u003c/p\u003e\n\n\u003cp align=center\u003e\n\u003ca href=\"https://www.npmjs.com/package/sinon\"\u003e\u003cimg src=\"https://img.shields.io/npm/v/sinon.svg?style=flat\" alt=\"npm version\"\u003e\u003c/a\u003e\n\u003ca href=\"https://saucelabs.com/u/sinonjs\"\u003e\u003cimg src=\"https://saucelabs.com/buildstatus/sinonjs\" alt=\"Sauce Test Status\"/\u003e\u003c/a\u003e\n\u003ca href=\"https://codecov.io/gh/sinonjs/sinon\"\u003e\u003cimg src=\"https://codecov.io/gh/sinonjs/sinon/branch/master/graph/badge.svg\" alt=\"Codecov status\"\u003e\u003c/a\u003e\n\u003ca href=\"#backers\"\u003e\u003cimg src=\"https://opencollective.com/sinon/backers/badge.svg\" alt=\"OpenCollective\"\u003e\u003c/a\u003e\n\u003ca href=\"#sponsors\"\u003e\u003cimg src=\"https://opencollective.com/sinon/sponsors/badge.svg\" alt=\"OpenCollective\"\u003e\u003c/a\u003e\n\u003ca href=\"https://www.npmjs.com/package/sinon\" target=\"_blank\"\u003e\u003cimg src=\"https://img.shields.io/npm/dm/sinon.svg\" alt=\"npm downloads per month\"\u003e\u003c/a\u003e\n\u003ca href=\"https://cdnjs.com/libraries/sinon.js\" target=\"_blank\"\u003e\u003cimg src=\"https://img.shields.io/cdnjs/v/sinon.js.svg\" alt=\"CDNJS version\"\u003e\u003c/a\u003e\n\u003ca href=\"CODE_OF_CONDUCT.md\"\u003e\u003cimg src=\"https://img.shields.io/badge/Contributor%20Covenant-v2.0%20adopted-ff69b4.svg\" alt=\"Contributor Covenant\" /\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n\u003c!-- Shows an outdated badge. Will not be fixed until https://github.com/sinonjs/fake-timers/pull/395 ships.\n\u003cp align=center\u003e\n\u003ca href=\"https://app.saucelabs.com/u/sinonjs\"\u003e\n  \u003cimg src=\"https://app.saucelabs.com/browser-matrix/sinonjs.svg\" alt=\"Sauce Test Status\"/\u003e\n\u003c/a\u003e\n\u003c/p\u003e\n--\u003e\n\n## Compatibility\n\nFor details on compatibility and browser support, please see [`COMPATIBILITY.md`](COMPATIBILITY.md)\n\n## Installation\n\nvia [npm](https://github.com/npm/npm)\n\n    $ npm install sinon\n\nor via Sinon's browser builds available for download on the [homepage](https://sinonjs.org/releases/).\nThere are also [npm based CDNs](https://sinonjs.org/releases#npm-cdns) one can use.\n\n## Usage\n\nSee the [sinon project homepage](https://sinonjs.org/) for documentation on usage.\n\nIf you have questions that are not covered by the documentation, you can [check out the `sinon` tag on Stack Overflow](https://stackoverflow.com/questions/tagged/sinon).\n\n## Goals\n\n- No global pollution\n- Easy to use\n- Require minimal “integration”\n- Easy to embed seamlessly with any testing framework\n- Easily fake any interface\n- Ship with ready-to-use fakes for timers\n\n## Contribute?\n\nSee [CONTRIBUTING.md](CONTRIBUTING.md) for details on how you can contribute to Sinon.JS\n\n## Backers\n\nThank you to all our backers! 🙏 [[Become a backer](https://opencollective.com/sinon#backer)]\n\n\u003ca href=\"https://opencollective.com/sinon#backers\" target=\"_blank\"\u003e\u003cimg src=\"https://opencollective.com/sinon/backers.svg?width=890\"\u003e\u003c/a\u003e\n\n## Sponsors\n\nBecome a sponsor and get your logo on our README on GitHub with a link to your site. [[Become a sponsor](https://opencollective.com/sinon#sponsor)]\n\n\u003ca href=\"https://opencollective.com/sinon/sponsor/0/website\" target=\"_blank\"\u003e\u003cimg src=\"https://opencollective.com/sinon/sponsor/0/avatar.svg\"\u003e\u003c/a\u003e\n\u003ca href=\"https://opencollective.com/sinon/sponsor/1/website\" target=\"_blank\"\u003e\u003cimg src=\"https://opencollective.com/sinon/sponsor/1/avatar.svg\"\u003e\u003c/a\u003e\n\u003ca href=\"https://opencollective.com/sinon/sponsor/2/website\" target=\"_blank\"\u003e\u003cimg src=\"https://opencollective.com/sinon/sponsor/2/avatar.svg\"\u003e\u003c/a\u003e\n\u003ca href=\"https://opencollective.com/sinon/sponsor/3/website\" target=\"_blank\"\u003e\u003cimg src=\"https://opencollective.com/sinon/sponsor/3/avatar.svg\"\u003e\u003c/a\u003e\n\u003ca href=\"https://opencollective.com/sinon/sponsor/4/website\" target=\"_blank\"\u003e\u003cimg src=\"https://opencollective.com/sinon/sponsor/4/avatar.svg\"\u003e\u003c/a\u003e\n\u003ca href=\"https://opencollective.com/sinon/sponsor/5/website\" target=\"_blank\"\u003e\u003cimg src=\"https://opencollective.com/sinon/sponsor/5/avatar.svg\"\u003e\u003c/a\u003e\n\u003ca href=\"https://opencollective.com/sinon/sponsor/6/website\" target=\"_blank\"\u003e\u003cimg src=\"https://opencollective.com/sinon/sponsor/6/avatar.svg\"\u003e\u003c/a\u003e\n\u003ca href=\"https://opencollective.com/sinon/sponsor/7/website\" target=\"_blank\"\u003e\u003cimg src=\"https://opencollective.com/sinon/sponsor/7/avatar.svg\"\u003e\u003c/a\u003e\n\u003ca href=\"https://opencollective.com/sinon/sponsor/8/website\" target=\"_blank\"\u003e\u003cimg src=\"https://opencollective.com/sinon/sponsor/8/avatar.svg\"\u003e\u003c/a\u003e\n\u003ca href=\"https://opencollective.com/sinon/sponsor/9/website\" target=\"_blank\"\u003e\u003cimg src=\"https://opencollective.com/sinon/sponsor/9/avatar.svg\"\u003e\u003c/a\u003e\n\u003ca href=\"https://opencollective.com/sinon/sponsor/10/website\" target=\"_blank\"\u003e\u003cimg src=\"https://opencollective.com/sinon/sponsor/10/avatar.svg\"\u003e\u003c/a\u003e\n\n## Licence\n\nSinon.js was released under [BSD-3](LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsinonjs%2Fsinon","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsinonjs%2Fsinon","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsinonjs%2Fsinon/lists"}