-
-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cypress runs failing in Github Actions. Threw 'TypeError: patterns.reduce is not a function error' under cypressSplit(on, config) #78
Comments
Hello, |
Hi @bahmutov, thanks for your reply. The version that used to work (1.3.12) is the same as the version that's failing. It started failing on github actions 5 days ago. Included the debug logs for reference
Let me know if you require more info. Thank you |
Error might be coming from fast-glob? mrmlnc/fast-glob#404 |
try adding
to your cypress.config.js file. like below
the rest of configurations is depends on your setting. |
globby depends on fast-glob which introduced a breaking change in 3.3.0. Their API has been expecting an string[] for `ignore` option for awhile but in the latest version it causes a TypeError. Make sure the `ignore` option is passed an array. Fixes issues for: bahmutov/cypress-split#78 (comment)
Updated the code to fix. Soon will be released. |
Thanks @bahmutov! Fix is working well :) |
Hi, thank you so much for creating cypress-split. It's a very helpful tool.
It seems that a few days ago, my cypress job runs in Github Actions are failing with the error below. No changes were done from my side. I've tried increasing cypress version and such but no luck. Could you help to determine what might've caused this issue? I've also included my cypress.config.js file below for reference. thank you.
cypress.config.js file:
version:
"cypress-split": "^1.3.12"
"cypress": "^11.2.0"
related github actions versions:
cypress-io/github-action@v5
runs-on: ubuntu-22.04
The text was updated successfully, but these errors were encountered: