Open
Description
Errors within tests are already caught and buffered, but errors outside of the tests (that make their way to the process itself) are not caught and buffered. It's currently piped directly parent.
In order to do this, you will need do the following:
- filesWithTestResults needs to include files without tests, since those tests might have output and wouldn't be included for display
- pass
silent: true
in options tofork()
- the following:
worker.stdout?.setEncoding('utf8');
worker.stdout?.on('data', (data) => (stdoutBuffer[file] = (stdoutBuffer[file] || '') + data.toString()));
worker.stderr?.setEncoding('utf8');
worker.stderr?.on('data', (data) => (stdoutBuffer[file] = (stdoutBuffer[file] || '') + data.toString()));