This is an addition to a full guide on SailsJS + Mocha, but updated for SailsJS 0.10.x
The guide does not belong to me, only this change to support SailsJS 0.10.x using code originally found in the guide written by it's author.
This is an addition to a full guide on SailsJS + Mocha, but updated for SailsJS 0.10.x
The guide does not belong to me, only this change to support SailsJS 0.10.x using code originally found in the guide written by it's author.
// Place this file in tasks/config/test.js | |
module.exports = function(grunt) { | |
grunt.config.set('mochaTest', { | |
test: { | |
options: { | |
reporter: 'spec' | |
}, | |
src: ['tests/**/*.spec.js'] | |
} | |
}); | |
grunt.loadNpmTasks('grunt-mocha-test'); | |
}; |
// Place this file in tasks/register/test.js | |
module.exports = function (grunt) { | |
grunt.registerTask('test', ['mochaTest']); | |
} |