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

Improve suspense test spies #3856

Merged
merged 1 commit into from
Jan 10, 2023
Merged

Improve suspense test spies #3856

merged 1 commit into from
Jan 10, 2023

Conversation

andrewiggins
Copy link
Member

@andrewiggins andrewiggins commented Jan 9, 2023

I'm working a bug & fix that impacts these tests and it's hard to debug them cuz as written, the error message doesn't log what method the spy assertion failed for. In the screenshots below can find it stack trace but in another branch, I don't see that 🤷‍♂️. It also lacks call information. So this PR rewrites how we spy on lifecycles so the method name is included in errors and the error message includes information about the calls to the method!

Before:
image

After:
image

@coveralls
Copy link

coveralls commented Jan 9, 2023

Coverage Status

Coverage: 99.531%. Remained the same when pulling 524e102 on update-suspense-tests into d527b4b on master.

@andrewiggins andrewiggins merged commit 2ce7b0a into master Jan 10, 2023
@andrewiggins andrewiggins deleted the update-suspense-tests branch January 10, 2023 01:03
andrewiggins added a commit that referenced this pull request Jan 10, 2023
andrewiggins added a commit that referenced this pull request Jan 10, 2023
andrewiggins added a commit that referenced this pull request Jan 10, 2023
JoviDeCroock added a commit that referenced this pull request Jan 12, 2024
JoviDeCroock added a commit that referenced this pull request Jan 12, 2024
* backport #3871

* port test from #3884 functionality seems to work in v11

* backport #3880

* backport #3875

* backport #3862

* add todo for #3801

* backport #3868

* backport #3867

* backport #3863

* add todo for #3856

* backport #3844

* backport #3816

* backport #3888

* backport #3889
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants