Skip to content

Instantly share code, notes, and snippets.

@supritashankar
Last active January 20, 2016 22:36
Show Gist options
  • Save supritashankar/5d4dea9367c4b5247ec8 to your computer and use it in GitHub Desktop.
Save supritashankar/5d4dea9367c4b5247ec8 to your computer and use it in GitHub Desktop.
mochacli task
'use strict';
module.exports = function mochacli(grunt) {
// Load task
grunt.loadNpmTasks('grunt-mocha-cli');
// Options
return {
src: ['test/unit/**/*.js'],
options: {
globals: ['moment' , 'COMPILED', 'Promise'], // Added Promise here - this is the fix!!!
timeout: 6000,
'check-leaks': true,
ui: 'bdd',
reporter: 'xunit',
'reporter-options': {
output: 'xunit.xml'
}
}
};
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment