UNPKG

@zebrunner/javascript-agent-mocha

Version:
17 lines (15 loc) 359 B
const logger = require('./logger'); const { CurrentTest } = require('../index'); exports.mochaHooks = () => ({ beforeEach: [ function beforeEachRoot() { CurrentTest.initLogging(this.currentTest); logger.info('EVENT_TEST_BEGIN'); }, ], afterEach: [ function afterEachRoot() { logger.info('EVENT_TEST_END'); }, ], });