0
虽然通过咕噜mochaTest我收到此错误运行我的代码:警告:任务 “mochatest” 找不到
Warning: Task "mochaTest" not found. Use --force to continue.
module.exports = function(grunt) {
grunt.loadTasks('grunt-mocha-test');
grunt.loadTasks('grunt-contrib-watch');
grunt.initConfig({
mochaTest: {
test: {
options: {
reporter: 'spec',
clearRequireCache: true
},
src: ['test/**/*.js']
},
},
watch: {
scripts: {
files: ['**/*.js'],
tasks: ['mochaTest']
}
}
});
grunt.registerTask('test', ['mochaTest']);
};
谢谢......现在它正在工作..很愚蠢的怀疑。 –