aleclarson / testpass

The compass for your code
MIT License
0 stars 0 forks source link

add event hooks #22

Open aleclarson opened 6 years ago

aleclarson commented 6 years ago

Two event hooks that come to mind: failed tests and finished runs.

const tp = require('testpass');

tp.hook('test:failed', () => {
  debugger;
});

tp.hook('run:finish', () => {
  debugger;
});