2016-01-13 00:23:32 +01:00
|
|
|
var wrap = require('lodash').wrap;
|
|
|
|
var Mocha = require('mocha');
|
|
|
|
|
2016-01-14 00:50:55 +01:00
|
|
|
// work around simplemocha's lack of a "--require" option.
|
|
|
|
// see https://github.com/yaymukund/grunt-simple-mocha/issues/50 for feature request.
|
2016-01-13 00:23:32 +01:00
|
|
|
Mocha.prototype.run = wrap(Mocha.prototype.run, function (orig) {
|
|
|
|
require('../../test/mocha_setup');
|
|
|
|
orig.call(this);
|
|
|
|
});
|
|
|
|
|
2015-01-23 19:34:29 +01:00
|
|
|
module.exports = {
|
|
|
|
options: {
|
2015-08-10 08:00:18 +02:00
|
|
|
timeout: 10000,
|
|
|
|
slow: 5000,
|
2015-01-23 19:34:29 +01:00
|
|
|
ignoreLeaks: false,
|
|
|
|
reporter: 'dot'
|
|
|
|
},
|
2015-07-26 19:05:57 +02:00
|
|
|
all: {
|
|
|
|
src: [
|
2015-10-14 21:48:51 +02:00
|
|
|
'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/**'
|
|
|
|
]
|
|
|
|
}
|
2015-01-23 19:34:29 +01:00
|
|
|
};
|