how can I subscribe to mocha suite events?

前端 未结 2 430
情书的邮戳
情书的邮戳 2021-01-31 11:01

I\'d like to be able to extend the mocha test results and listen to them from the available mocha object. First, I\'m looking at getting the \"passes\" results.

It look

2条回答
  •  情话喂你
    2021-01-31 11:51

    You can also get similar events at

    mocha.suite.beforeEach(function() {} )
    mocha.suite.afterEach(function() {} )
    mocha.suite.afterAll( function() {} )
    

提交回复
热议问题