From d222a08e3ce0ba8130ee2d1ee2b4e93b8fd57ff1 Mon Sep 17 00:00:00 2001 From: Robert Battaglia Date: Mon, 20 May 2024 09:40:59 -0400 Subject: [PATCH] feat: cypress report skipped tests - fix lint / prettier fixes allure-framework/allure-js#948 --- packages/allure-cypress/src/index.ts | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/packages/allure-cypress/src/index.ts b/packages/allure-cypress/src/index.ts index 7fb759173..4a72584d8 100644 --- a/packages/allure-cypress/src/index.ts +++ b/packages/allure-cypress/src/index.ts @@ -194,12 +194,7 @@ export class AllureCypressTestRuntime implements TestRuntime { } } -const { - EVENT_TEST_BEGIN, - EVENT_TEST_FAIL, - EVENT_TEST_PASS, - EVENT_TEST_PENDING -} = Mocha.Runner.constants; +const { EVENT_TEST_BEGIN, EVENT_TEST_FAIL, EVENT_TEST_PASS, EVENT_TEST_PENDING } = Mocha.Runner.constants; const getSuitePath = (test: Mocha.Test): string[] => { const path: string[] = []; @@ -277,7 +272,7 @@ Cypress.mocha }, }); }) - .on(EVENT_TEST_PENDING, (test: Mocha.Test, err: Error) => { + .on(EVENT_TEST_PENDING, (test: Mocha.Test) => { const testRuntime = new AllureCypressTestRuntime(); const startMessage: CypressRuntimeMessage = {