Socket
Socket
Sign inDemoInstall

@sinonjs/referee

Package Overview
Dependencies
37
Maintainers
6
Versions
39
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @sinonjs/referee

Assertions for any JavaScript test framework and environment


Version published
Weekly downloads
4.9K
increased by10.82%
Maintainers
6
Install size
1.65 MB
Created
Weekly downloads
 

Changelog

Source

11.0.1

Released by Morgan Roderick on 2024-02-10.

Readme

Source

referee

codecov Contributor Covenant

referee is in your unit tests, deciding who passes and who fails.

It is a test-framework agnostic assertion and expectation library, designed to work with your choice of test runner. Some highlights:

  • Rich library of assertions
  • Supports custom assertions
  • Complementary assert/refute (refute is referee's assert.not)
  • Evented: Emits success and failure events
  • Failing assertions throw exceptions by default, but can be configured to not
  • API to add custom assertions that provides quite a bit of plumbing for free
  • 100% test coverage (enforced with test-check-coverage in package.json)

referee works in browsers (including old and rowdy ones, like IE11) and Node (LTS versions). It will define itself as an AMD module if you want it to (i.e. if there's a define function available).

Documentation

https://sinonjs.github.io/referee/

Backers

Support us with a monthly donation and help us continue our activities. [Become a backer]

Sponsors

Become a sponsor and get your logo on our README on GitHub with a link to your site. [Become a sponsor]

Licence

referee was released under BSD-3

FAQs

Last updated on 10 Feb 2024

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc