Skip to content

Common Mocha setup for @sinonjs/referee-sinon

License

Notifications You must be signed in to change notification settings

mantoni/mocha-referee-sinon

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mocha-referee-sinon

Build Status SemVer License

Common initialization file for Mocha when used with @sinonjs/referee-sinon.

What it does

Installs global beforeEach and afterEach hooks for Mocha to verify that

  • each test has at least one referee assertion
  • the global Sinon sandbox is restored with sinon.restore()

Install

Install in devDependencies:

❯ npm install -D mocha-referee-sinon

Usage

❯ mocha --file ./node_modules/mocha-referee-sinon

Compatibility

  • 1.0.0: Mocha 5.2, @sinonjs/referee-sinon 5.0

License

MIT

About

Common Mocha setup for @sinonjs/referee-sinon

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published