-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
fix: try to only add commonjs when running Cypress config #27484
Conversation
19 flaky tests on run #50149 ↗︎
Details:
commands/net_stubbing.cy.ts • 1 flaky test • 5x-driver-electron
e2e/origin/dependencies.cy.ts • 1 flaky test • 5x-driver-electron
e2e/origin/commands/querying.cy.ts • 1 flaky test • 5x-driver-electron
e2e/origin/commands/assertions.cy.ts • 1 flaky test • 5x-driver-electron
e2e/origin/basic_login.cy.ts • 1 flaky test • 5x-driver-electron
The first 5 flaky specs are shown, see all 14 specs in Cypress Cloud. This comment has been generated by cypress-bot as a result of this project's GitHub integration settings. |
Is this working for you @lmiller1990. I'm still running into the issue running this code locally. |
Not sure, I didn't get a chance to test it thoroughly. Did your commit fix it @jordanpowell88 ? Does it fix #27448? Not really ideal, apps with |
I agree but this does appear to fix the issue. Not sure if their is a better solution |
2be6434
to
0bc6c0a
Compare
@AtofStryker can you please take another look? Thanks! |
Released in This comment thread has been locked. If you are still experiencing this issue after upgrading to |
"moduleResolution": "bundler"
option in v5 #26308 (maybe)Additional details
We hard code
module: commonjs
. I think it is because we wantcommonjs
to be the default when executing thecypress.config
child process.Hard coding this causes issues when users have projects using the new
module: bundler
config option intsconfig.json
. I found out we can just still hard code it, but we need to do it a different place, so it is only used when executing thecypress.config
child process.Steps to test
You could verify that the issues this claims to fix are fixed. One way would be adding Cypress in a project with
module: bundler
in thetsconfig.json
, such as the one provided here. #26308How has the user experience changed?
PR Tasks
cypress-documentation
?type definitions
?