Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
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