diff --git a/lib/main.js b/lib/main.js index 5a0b5ff..9f45beb 100644 --- a/lib/main.js +++ b/lib/main.js @@ -28,7 +28,9 @@ export default async function * customReporter (source) { type !== 'test:pass' && type !== 'test:fail' && type !== 'test:plan' && - type !== 'test:diagnostic' + type !== 'test:diagnostic' && + type !== 'test:stdout' && + type !== 'test:stderr' ) { continue; } @@ -111,6 +113,12 @@ export default async function * customReporter (source) { // Emitted when context.diagnostic is called. diagnostics.push(data); break; + case 'test:stdout': + process.stdout.write(data.message); + break; + case 'test:stderr': + process.stderr.write(data.message); + break; } }