From 3fd35cab6272e64cec3b98fdc4ce6a9343ad0bf0 Mon Sep 17 00:00:00 2001 From: Pascal Birchler Date: Fri, 8 Nov 2024 13:26:28 +0100 Subject: [PATCH] E2E Tests: try handling `hook_failure` --- packages/e2e-tests/src/puppeteerEnvironment.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/e2e-tests/src/puppeteerEnvironment.js b/packages/e2e-tests/src/puppeteerEnvironment.js index 30a769f8ba6f..4cab03d76770 100644 --- a/packages/e2e-tests/src/puppeteerEnvironment.js +++ b/packages/e2e-tests/src/puppeteerEnvironment.js @@ -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);