Add onServerReady, onTestsComplete, onIstanbulComplete Hooks (#408)
parent
d57d6fdc8b
commit
635d9bcd63
@ -1,4 +1,10 @@ |
|||||||
|
// Testing hooks
|
||||||
|
const fn = (msg, config) => config.logger.log(msg); |
||||||
|
|
||||||
module.exports = { |
module.exports = { |
||||||
silent: process.env.SILENT ? true : false, |
silent: process.env.SILENT ? true : false, |
||||||
istanbulReporter: ['json-summary', 'text'] |
istanbulReporter: ['json-summary', 'text'], |
||||||
|
onServerReady: fn.bind(null, 'running onServerReady'), |
||||||
|
onTestsComplete: fn.bind(null, 'running onTestsComplete'), |
||||||
|
onIstanbulComplete: fn.bind(null, 'running onIstanbulComplete') |
||||||
} |
} |
||||||
|
Loading…
Reference in new issue