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

test: fix freeze on assert fail #2787

Merged
merged 1 commit into from
Jun 17, 2024
Merged

test: fix freeze on assert fail #2787

merged 1 commit into from
Jun 17, 2024

Conversation

TomMenga
Copy link
Contributor

Solves:

  • Tests freeze when an assertion fails

The problem was introduced with the update of the @web/dev-server-core package (dependency of @web/test-runner).
Specifically, the faulty change is the use of structuredClone.
The stable function is called before reporting the test suite result which contains a reference to the element on which the assertion failed (in our case, the web component, which cannot be cloned).

TODO: Open an issue in https://github.com/modernweb-dev/web

@github-actions github-actions bot added the pr: peer review required A peer review is required for this pull request label Jun 17, 2024
@TomMenga TomMenga added the pr: lead review required A lead review is required for this pull request label Jun 17, 2024
Copy link
Contributor

@kyubisation kyubisation left a comment

Choose a reason for hiding this comment

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

LGTM 👍
Nice catch! 😃

@github-actions github-actions bot added pr: lead review approved Pull request has been approved by a lead review and removed pr: lead review required A lead review is required for this pull request labels Jun 17, 2024
@TomMenga TomMenga merged commit 3929035 into main Jun 17, 2024
30 of 31 checks passed
@TomMenga TomMenga deleted the fix/test-assertion-freeze branch June 17, 2024 11:05
@github-actions github-actions bot removed the pr: peer review required A peer review is required for this pull request label Jun 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants