kibana/tasks/config/simplemocha.js
Tyler Smalley 617f21829b Use spec reporter for Mocha tests (#9470)
Provides context for exceptions and node warnings (ex: UnhandledPromiseRejectionWarning)

Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
2016-12-13 17:05:05 -08:00

21 lines
361 B
JavaScript

require('../../test/mocha_setup');
module.exports = {
options: {
timeout: 10000,
slow: 5000,
ignoreLeaks: false,
reporter: 'spec',
globals: ['nil']
},
all: {
src: [
'test/**/__tests__/**/*.js',
'src/**/__tests__/**/*.js',
'test/fixtures/__tests__/*.js',
'!src/**/public/**',
'!**/_*.js'
]
}
};