#!/usr/bin/env node

process.on('exit', function sendCoverage() {
  process.send({'coverage': global.__coverage__});
});

#!/usr/bin/env node

process.on('beforeExit', function sendCovereageBeforeExit() {
  process.send({'coverage': global.__coverage__});
});

Use beforeExit event to send coverage
Use beforeExit event to send coverage
