Skip to content

Commit

Permalink
E2E Tests: try handling hook_failure
Browse files Browse the repository at this point in the history
  • Loading branch information
swissspidy committed Nov 8, 2024
1 parent 77b9111 commit 3fd35ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/e2e-tests/src/puppeteerEnvironment.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ class PuppeteerEnvironment extends JestPuppeteer.TestEnvironment {
}

async handleTestEvent(event, state) {
if (event.name === 'test_fn_failure') {
if (event.name === 'test_fn_failure' || event.name === 'hook_failure') {
const testName = `${state.currentlyRunningTest.parent.name} ${state.currentlyRunningTest.name}`;
const errors = state.currentlyRunningTest.errors;
const eventError = util.inspect(event);
Expand Down

0 comments on commit 3fd35ca

Please sign in to comment.