liudong
2023-05-29 340f156319b863525e50e900c58e59b86ecb3d5e
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
module.exports = function(grunt) {
  grunt.initConfig({
    simplemocha: {
      all: {
        src: ['test/**/*.js'],
        options: {
          globals: ['should'],
          timeout: 3000,
          ignoreLeaks: false,
          grep: '*-test',
          ui: 'bdd',
          reporter: 'tap'
        }
      }
    }
  });
 
  // For this to work, you need to have run `npm install grunt-simple-mocha`
  grunt.loadNpmTasks('grunt-simple-mocha');
 
  // Add a default task.
  grunt.registerTask('default', 'simplemocha');
};