Skip to content

Instantly share code, notes, and snippets.

@TheSavior
Created September 26, 2016 20:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save TheSavior/d9ec25832b5a237cf367fa182f980301 to your computer and use it in GitHub Desktop.
Save TheSavior/d9ec25832b5a237cf367fa182f980301 to your computer and use it in GitHub Desktop.
How to use mocha in coderpad
const Mocha = require('mocha');
const mocha = new Mocha();
mocha.suite.emit('pre-require', this, 'solution', mocha);
describe('tests', () => {
it('should run', () => {
});
});
mocha.run();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment