kibana/tasks/config/simplemocha.js

28 lines
641 B
JavaScript
Raw Normal View History

var wrap = require('lodash').wrap;
var Mocha = require('mocha');
// work around simplemocha's lack of a "--require" option.
// see https://github.com/yaymukund/grunt-simple-mocha/issues/50 for feature request.
Mocha.prototype.run = wrap(Mocha.prototype.run, function (orig) {
require('../../test/mocha_setup');
orig.call(this);
});
module.exports = {
options: {
2015-08-10 08:00:18 +02:00
timeout: 10000,
slow: 5000,
ignoreLeaks: false,
reporter: 'dot'
},
2015-07-26 19:05:57 +02:00
all: {
src: [
'test/**/__tests__/**/*.js',
2015-07-26 19:05:57 +02:00
'src/**/__tests__/**/*.js',
2015-10-14 22:20:14 +02:00
'test/fixtures/__tests__/*.js',
2015-07-26 19:05:57 +02:00
'!src/**/public/**',
'!src/ui/**'
]
}
};