From 388a3ebd8c6ff3db403957cc9dfe832da8140bfd Mon Sep 17 00:00:00 2001 From: Julien Wajsberg Date: Sat, 5 Mar 2016 14:43:08 +0100 Subject: [PATCH] Default to running tests in the `test` directory --- index.js | 1 + 1 file changed, 1 insertion(+) diff --git a/index.js b/index.js index 57df3e7..b87abca 100644 --- a/index.js +++ b/index.js @@ -10,6 +10,7 @@ module.exports = function mocha ( inputdir, options, cb ) { var mocha = new Mocha( options ); + options.testDir = options.testDir || 'test'; mocha.files = sander.readdirSync( inputdir, options.testDir ).filter( n => n.endsWith('.js') ).map(function ( file ) { return path.join( inputdir, options.testDir, file ); });