Skip to content

Commit

Permalink
Refine custom reporter error logging
Browse files Browse the repository at this point in the history
  • Loading branch information
allie500 committed Feb 4, 2025
1 parent ca2b909 commit 2c31ad4
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions tests/e2e-pw/atomic-debug-reporter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,9 @@ class AtomicDebugReporter implements Reporter {

if ( result.status === 'failed' || result.status === 'timedOut' ) {
console.log( 'First error thrown during test execution:' );
console.log( result.error );

if ( result.errors ) {
console.log( 'All errors thrown during test execution:' );
console.log( result.errors );
}
console.log( result.error.message );
console.log( result.error.snippet );
console.log( result.error.stack );
}
}

Expand Down

0 comments on commit 2c31ad4

Please sign in to comment.