diff --git a/packages/allure-cypress/test/utils.ts b/packages/allure-cypress/test/utils.ts index beca31d53..55cb4f172 100644 --- a/packages/allure-cypress/test/utils.ts +++ b/packages/allure-cypress/test/utils.ts @@ -80,8 +80,8 @@ export const runCypressInlineTest = async ( await step("Prepare files", async () => { const allureCommonsModulePath = require.resolve("allure-js-commons"); - const allureCypressModulePath = require.resolve("allure-cypress"); - const allureCypressReporterModulePath = require.resolve("allure-cypress/reporter"); + const allureCypressReporterModulePath = require.resolve("allure-cypress"); + const allureCypressModulePath = join(dirname(allureCypressReporterModulePath), "index.js"); // eslint-disable-next-line guard-for-in for (const testFile in testFilesToWrite) {