1. @sinonjs/referee
Assertions for any JavaScript test framework and environment
@sinonjs/referee
Package: @sinonjs/referee
Created by: sinonjs
Last modified: Sat, 10 Feb 2024 22:23:54 GMT
Version: 11.0.1
License: BSD-3-Clause
Downloads: 20,375
Repository: https://github.com/sinonjs/referee

Install

npm install @sinonjs/referee
yarn add @sinonjs/referee

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

RELATED POST

Enhancing Vue.js Development: Harnessing the Potential of Vue-Loader

Enhancing Vue.js Development: Harnessing the Potential of Vue-Loader

Simplify Data Validation in Vue.js: A Step-by-Step Guide to Using Regex

Simplify Data Validation in Vue.js: A Step-by-Step Guide to Using Regex

Troubleshooting Made Easy: Common Issues and Solutions with vue-loader Without vue-cli

Troubleshooting Made Easy: Common Issues and Solutions with vue-loader Without vue-cli

Optimizing Webpack 4 with Vue CLI 3: Disabling the Cache-Loader

Optimizing Webpack 4 with Vue CLI 3: Disabling the Cache-Loader

Step-by-Step Guide: How to Add a Function to Your Vuex Plugin

Step-by-Step Guide: How to Add a Function to Your Vuex Plugin