Describe the bug
When a test writes to stdout and then later to stderr, the time on the stderr UserConsoleLog matches the timestamp of the preceding stdout entry rather than the actual time stderr was written.
Reproduction
it('test-1', async () => {
await new Promise(x => setTimeout(x, 50));
console.log('foo');
await new Promise(x => setTimeout(x, 100));
console.error('bar');
});
In onUserConsoleLog, the bar entry's time equals the foo entry's time, despite being ~100ms apart in real time.
System Info
Used Package Manager
npm
Validations
Describe the bug
When a test writes to stdout and then later to stderr, the
timeon the stderrUserConsoleLogmatches the timestamp of the preceding stdout entry rather than the actual time stderr was written.Reproduction
In
onUserConsoleLog, thebarentry'stimeequals thefooentry'stime, despite being ~100ms apart in real time.System Info
Used Package Manager
npm
Validations