Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/sinonjs/referee-custom-assertions
- Owner: sinonjs
- License: bsd-3-clause
- Created: 2018-10-28T07:25:27.000Z (about 6 years ago)
- Default Branch: main
- Last Pushed: 2023-04-29T18:05:17.000Z (over 1 year ago)
- Last Synced: 2024-04-14T22:18:29.259Z (7 months ago)
- Topics: assertions, custom-assertions, jasmine, jest, mocha, referee, tap, testing
- Language: JavaScript
- Homepage:
- Size: 1.25 MB
- Stars: 0
- Watchers: 5
- Forks: 1
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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