Last active
January 20, 2016 22:36
-
-
Save supritashankar/5d4dea9367c4b5247ec8 to your computer and use it in GitHub Desktop.
mochacli task
This file contains 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
'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