Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/sinonjs/referee-custom-assertions

Runnable examples of using referee custom assertions
https://github.com/sinonjs/referee-custom-assertions

assertions custom-assertions jasmine jest mocha referee tap testing

Last synced: 7 days ago
JSON representation

Runnable examples of using referee custom assertions

Awesome Lists containing this project

README

        

# Custom assertions with [`@sinonjs/referee`][referee]

This repository contains runnable examples of custom assertions for
[`@sinonjs/referee`][referee].

The npm scripts in `package.json` show how to load custom assertions with

- [Mocha][mocha] (`npm run test:mocha`)
- [Mochify][mochify] (`npm run test:mochify`)
- [Jest][jest] (`npm run test:jest`)
- [Jasmine][jasmine] (`npm run test:jasmine`)
- [Tap][tap] (`npm run test:tap`)

The example sources can be found in [`./test/assertions/`][examples]. Use them
as a blueprint to build your own assertions, or refer to the documentation of
[`referee.add()`][docs] to learn more.

[mocha]: https://mochajs.org
[mochify]: https://github.com/mantoni/mochify
[jest]: https://jestjs.io
[jasmine]: https://jasmine.github.io
[tap]: https://www.node-tap.org
[referee]: https://github.com/sinonjs/referee
[examples]: https://github.com/sinonjs/referee-custom-assertions/tree/master/test/assertions
[docs]: https://sinonjs.github.io/referee/#refereeadd