UNPKG

tree-util

Version:

Utility package for building a tree from array plus functions for working with trees

24 lines (20 loc) 759 B
module.exports = function(grunt) { // Add the grunt-mocha-test tasks. grunt.loadNpmTasks('grunt-mocha-test'); grunt.initConfig({ // Configure a mochaTest task mochaTest: { test: { options: { reporter: 'spec', captureFile: 'results.txt', // Optionally capture the reporter output to a file quiet: false, // Optionally suppress output to standard out (defaults to false) clearRequireCache: false, // Optionally clear the require cache before running tests (defaults to false) noFail: false // Optionally set to not fail on failed tests (will still fail on other errors) }, src: ['test/**/*.js'] } } }); grunt.registerTask('default', 'mochaTest'); };