Last active
August 29, 2015 16:46
-
-
Save andre487/1d36f679e66c5476ab46 to your computer and use it in GitHub Desktop.
Mocha bootstrap
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"env": {"mocha": true}, | |
"globals": { | |
"assert": false, | |
"sinon": false, | |
"chai": false | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
global.sinon = require('sinon'); | |
global.chai = require('chai'); | |
global.assert = global.chai.assert; | |
chai.use(require('chai-as-promised')); | |
sinon.assert.expose(chai.assert, {prefix: ''}); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cd test && mocha --recursive --reporter min --require bootstrap.js . |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment