From Node.js Internals:
TypeError: state.messages.current.findLastIndex is not a function
at testCaseStartedHandler (C:\agent\vsts-agent-win-x64-2.175.2_work\1391\s\node_modules\@badeball\cypress-cucumber-preprocessor\dist\plugin-event-handlers.js:390:69)
at invoke (C:\Windows\ServiceProfiles\NetworkService\AppData\Local\Cypress\Cache\13.6.6\Cypress\resources\app\node_modules\@packages\server\lib\plugins\child\run_plugins.js:248:16)
at (C:\Windows\ServiceProfiles\NetworkService\AppData\Local\Cypress\Cache\13.6.6\Cypress\resources\app\node_modules\@packages\server\lib\plugins\util.js:59:14)
at tryCatcher (C:\Windows\ServiceProfiles\NetworkService\AppData\Local\Cypress\Cache\13.6.6\Cypress\resources\app\node_modules\bluebird\js\release\util.js:16:23)
at Function.Promise.attempt.Promise.try (C:\Windows\ServiceProfiles\NetworkService\AppData\Local\Cypress\Cache\13.6.6\Cypress\resources\app\node_modules\bluebird\js\release\method.js:39:29)
at Object.wrapChildPromise (C:\Windows\ServiceProfiles\NetworkService\AppData\Local\Cypress\Cache\13.6.6\Cypress\resources\app\node_modules\@packages\server\lib\plugins\util.js:58:23)
at RunPlugins.taskExecute (C:\Windows\ServiceProfiles\NetworkService\AppData\Local\Cypress\Cache\13.6.6\Cypress\resources\app\node_modules\@packages\server\lib\plugins\child\run_plugins.js:254:10)
at RunPlugins.execute (C:\Windows\ServiceProfiles\NetworkService\AppData\Local\Cypress\Cache\13.6.6\Cypress\resources\app\node_modules\@packages\server\lib\plugins\child\run_plugins.js:166:21)
at EventEmitter. (C:\Windows\ServiceProfiles\NetworkService\AppData\Local\Cypress\Cache\13.6.6\Cypress\resources\app\node_modules\@packages\server\lib\plugins\child\run_plugins.js:56:12)
at EventEmitter.emit (node:events:513:28)
at EventEmitter.emit (node:domain:489:12)
at process. (C:\Windows\ServiceProfiles\NetworkService\AppData\Local\Cypress\Cache\13.6.6\Cypress\resources\app\node_modules\@packages\server\lib\plugins\util.js:33:22)
at process.emit (node:events:513:28)
at process.emit (node:domain:489:12)
at process.emit.sharedData.processEmitHook.installedValue [as emit] (C:\Windows\ServiceProfiles\NetworkService\AppData\Local\Cypress\Cache\13.6.6\Cypress\resources\app\node_modules\@cspotcode\source-map-support\source-map-support.js:745:40)
at emit (node:internal/child_process:946:14)
at processTicksAndRejections (node:internal/process/task_queues:84:21)]]>
An error was thrown in your plugins file while executing the handler for the after:spec event.
The error we received was:
Error: Unexpected state in afterSpecHandler: has-reloaded-received-envelopes (this might be a bug, please report at https://github.com/badeball/cypress-cucumber-preprocessor)
at createError (C:\agent\vsts-agent-win-x64-2.175.2_work\1391\s\node_modules\@badeball\cypress-cucumber-preprocessor\dist\helpers\error.js:9:12)
at afterSpecHandler (C:\agent\vsts-agent-win-x64-2.175.2_work\1391\s\node_modules\@badeball\cypress-cucumber-preprocessor\dist\plugin-event-handlers.js:276:43)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
Desired behavior
No extra tests to be reported with "after each" hook issue telling Expected there to be a timestamp for current step (this might be a bug, please report at https://github.com/badeball/cypress-cucumber-preprocessor) Because this error occurred during a after each hook we are skipping the remaining tests in the current suite: - API error handling fo...
Current behavior
From Node.js Internals: TypeError: state.messages.current.findLastIndex is not a function at testCaseStartedHandler (C:\agent\vsts-agent-win-x64-2.175.2_work\1391\s\node_modules\@badeball\cypress-cucumber-preprocessor\dist\plugin-event-handlers.js:390:69) at invoke (C:\Windows\ServiceProfiles\NetworkService\AppData\Local\Cypress\Cache\13.6.6\Cypress\resources\app\node_modules\@packages\server\lib\plugins\child\run_plugins.js:248:16) at (C:\Windows\ServiceProfiles\NetworkService\AppData\Local\Cypress\Cache\13.6.6\Cypress\resources\app\node_modules\@packages\server\lib\plugins\util.js:59:14)
at tryCatcher (C:\Windows\ServiceProfiles\NetworkService\AppData\Local\Cypress\Cache\13.6.6\Cypress\resources\app\node_modules\bluebird\js\release\util.js:16:23)
at Function.Promise.attempt.Promise.try (C:\Windows\ServiceProfiles\NetworkService\AppData\Local\Cypress\Cache\13.6.6\Cypress\resources\app\node_modules\bluebird\js\release\method.js:39:29)
at Object.wrapChildPromise (C:\Windows\ServiceProfiles\NetworkService\AppData\Local\Cypress\Cache\13.6.6\Cypress\resources\app\node_modules\@packages\server\lib\plugins\util.js:58:23)
at RunPlugins.taskExecute (C:\Windows\ServiceProfiles\NetworkService\AppData\Local\Cypress\Cache\13.6.6\Cypress\resources\app\node_modules\@packages\server\lib\plugins\child\run_plugins.js:254:10)
at RunPlugins.execute (C:\Windows\ServiceProfiles\NetworkService\AppData\Local\Cypress\Cache\13.6.6\Cypress\resources\app\node_modules\@packages\server\lib\plugins\child\run_plugins.js:166:21)
at EventEmitter. (C:\Windows\ServiceProfiles\NetworkService\AppData\Local\Cypress\Cache\13.6.6\Cypress\resources\app\node_modules\@packages\server\lib\plugins\child\run_plugins.js:56:12)
at EventEmitter.emit (node:events:513:28)
at EventEmitter.emit (node:domain:489:12)
at process. (C:\Windows\ServiceProfiles\NetworkService\AppData\Local\Cypress\Cache\13.6.6\Cypress\resources\app\node_modules\@packages\server\lib\plugins\util.js:33:22)
at process.emit (node:events:513:28)
at process.emit (node:domain:489:12)
at process.emit.sharedData.processEmitHook.installedValue [as emit] (C:\Windows\ServiceProfiles\NetworkService\AppData\Local\Cypress\Cache\13.6.6\Cypress\resources\app\node_modules\@cspotcode\source-map-support\source-map-support.js:745:40)
at emit (node:internal/child_process:946:14)
at processTicksAndRejections (node:internal/process/task_queues:84:21)]]>
An error was thrown in your plugins file while executing the handler for the after:spec event.
The error we received was:
Error: Unexpected state in afterSpecHandler: has-reloaded-received-envelopes (this might be a bug, please report at https://github.com/badeball/cypress-cucumber-preprocessor) at createError (C:\agent\vsts-agent-win-x64-2.175.2_work\1391\s\node_modules\@badeball\cypress-cucumber-preprocessor\dist\helpers\error.js:9:12) at afterSpecHandler (C:\agent\vsts-agent-win-x64-2.175.2_work\1391\s\node_modules\@badeball\cypress-cucumber-preprocessor\dist\plugin-event-handlers.js:276:43) at processTicksAndRejections (node:internal/process/task_queues:96:5)
Desired behavior
No extra tests to be reported with "after each" hook issue telling Expected there to be a timestamp for current step (this might be a bug, please report at https://github.com/badeball/cypress-cucumber-preprocessor) Because this error occurred during a after each hook we are skipping the remaining tests in the current suite: - API error handling fo...
Test code to reproduce
Versions
Checklist
cypress-cucumber-preprocessor@4.3.1
(package name has changed and it is no longer the most recent version, see #689).