Skip to content
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: partial fix for #21997 & #22004, throw the originalError #22009

Merged
merged 10 commits into from
Jun 1, 2022

Conversation

tgriesser
Copy link
Member

User facing changelog

Throws the first error encountered when failing due to an esm import, when Node's ESM loading cannot not handle it. This will provide better information about the actual error encountered, such as when processed via ts-node for TypeScript files.

Additional details

Not the full fix for the issues, but will surface better warnings around the issue

Steps to test

How has the user experience changed?

PR Tasks

  • Have tests been added/updated?
  • Has the original issue (or this PR, if no issue exists) been tagged with a release in ZenHub? (user-facing changes only)
  • Has a PR for user-facing changes been opened in cypress-documentation?
  • Have API changes been updated in the type definitions?

@tgriesser tgriesser requested review from a team as code owners June 1, 2022 19:19
@tgriesser tgriesser removed the request for review from a team June 1, 2022 19:19
@cypress-bot
Copy link
Contributor

cypress-bot bot commented Jun 1, 2022

Thanks for taking the time to open a PR!

@jennifer-shehane jennifer-shehane requested review from estrada9166 and removed request for jennifer-shehane June 1, 2022 19:20
@@ -18,7 +18,7 @@
"test-unit": "mocha -r ts-node/register/transpile-only --config ./test/.mocharc.js"
},
"dependencies": {
"find-up": "6.3.0",
"find-up": "5.0.0",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why did this need to be downgraded?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was thinking it was because 6.3.0 is ESM only, and webpack-dev-server is not an ESM project - though I guess we're using importModule so that shouldn't matter

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So can this be reverted?

@cypress
Copy link

cypress bot commented Jun 1, 2022



Test summary

37553 0 454 0Flakiness 6


Run details

Project cypress
Status Passed
Commit 67a65ac
Started Jun 1, 2022 7:44 PM
Ended Jun 1, 2022 8:02 PM
Duration 17:42 💡
OS Linux Debian - 10.11
Browser Multiple

View run in Cypress Dashboard ➡️


Flakiness

commands/actions/click.cy.js Flakiness
1 ... > scroll-behavior > can scroll to and click elements in html with scroll-behavior: smooth
2 ... > scroll-behavior > can scroll to and click elements in html with scroll-behavior: smooth
next.cy.ts Flakiness
1 Working with next-12 > should detect new spec
2 Working with next-11-webpack-4 > should live-reload on src changes
cypress/proxy-logging.cy.ts Flakiness
1 Proxy Logging > request logging > xhr log has response body/status code when xhr response is logged second
This comment includes only the first 5 flaky tests. See all 6 flaky tests in the Cypress Dashboard.

This comment has been generated by cypress-bot as a result of this project's GitHub integration settings. You can manage this integration in this project's settings in the Cypress Dashboard

…ss-io/cypress into tgriesser/fix/21997-fix-invalid-ts

* 'tgriesser/fix/21997-fix-invalid-ts' of github.com:cypress-io/cypress:
  fix: scroll of inline specs list (#21994)
Copy link
Contributor

@flotwig flotwig left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice

@@ -46,4 +46,4 @@
"files": [
"dist"
]
}
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: newline

@tgriesser tgriesser merged commit 369a865 into develop Jun 1, 2022
@tgriesser tgriesser deleted the tgriesser/fix/21997-fix-invalid-ts branch June 1, 2022 20:54
@cypress-bot
Copy link
Contributor

cypress-bot bot commented Jun 2, 2022

Released in 10.0.1.

This comment thread has been locked. If you are still experiencing this issue after upgrading to
Cypress v10.0.1, please open a new issue.

@cypress-bot cypress-bot bot locked as resolved and limited conversation to collaborators Jun 2, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants