Created
June 10, 2014 14:51
-
-
Save ruyadorno/f7570cf984c0e942e1ab to your computer and use it in GitHub Desktop.
Running grunt inside a yeoman generator test
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
var getGrunt = function () { | |
var grunt = require(path.join(__dirname, 'temp/node_modules/grunt')); | |
grunt.option('gruntfile', path.join(__dirname, 'temp/Gruntfile.js')); | |
return grunt; | |
}; | |
// Running the test task inside a describe/it block: | |
getGrunt().tasks(['test'], {}, callback_fn); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment