Open RobertBattaglia opened 1 month ago
the problem should be already fixed in allure-cypress@3.0.0-beta.6
, could you please give it a try
For context, with Cypress v 13.4.0 node version 20.9.0 Trying to use the 3.0.0-beta any version I get:
Oops...we found an error preparing this test file:
> cypress/support/e2e.ts
The error was:
SyntaxError: Unexpected token (1:3594) while parsing /e2e/node_modules/allure-cypress/dist/cjs/index.js while parsing file: /e2e/node_modules/allure-cypress/dist/cjs/index.js
at DestroyableTransform.end [as _flush] (/e2e/node_modules/insert-module-globals/index.js:114:21)
at DestroyableTransform.prefinish (/e2e/node_modules/through2/node_modules/readable-stream/lib/_stream_transform.js:138:10)
at DestroyableTransform.emit (node:events:514:28)
at DestroyableTransform.emit (node:domain:488:12)
at prefinish (/e2e/node_modules/through2/node_modules/readable-stream/lib/_stream_writable.js:619:14)
at finishMaybe (/e2e/node_modules/through2/node_modules/readable-stream/lib/_stream_writable.js:627:5)
at endWritable (/e2e/node_modules/through2/node_modules/readable-stream/lib/_stream_writable.js:638:3)
at DestroyableTransform.Writable.end (/e2e/node_modules/through2/node_modules/readable-stream/lib/_stream_writable.js:594:22)
at DestroyableTransform.onend (/e2e/node_modules/through2/node_modules/readable-stream/lib/_stream_readable.js:577:10)
at Object.onceWrapper (node:events:628:28)
at DestroyableTransform.emit (node:events:526:35)
at DestroyableTransform.emit (node:domain:488:12)
at endReadableNT (/e2e/node_modules/through2/node_modules/readable-stream/lib/_stream_readable.js:1010:12)
at processTicksAndRejections (node:internal/process/task_queues:82:21
Describe the bug
To Reproduce Tough to reproduce, seems a race condition. Stack trace:
Expected behavior No tests should fail BECAUSE of the plugin. I would rather lose data than cause flaky tests.
Additional context version 2.14