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

tweak unit test setup funcs #333

Merged
merged 1 commit into from
Sep 20, 2023
Merged

tweak unit test setup funcs #333

merged 1 commit into from
Sep 20, 2023

Conversation

vincerubinetti
Copy link
Contributor

@vincerubinetti vincerubinetti commented Sep 20, 2023

Addresses #315

I've done extensive testing with tmate on github actions, messing with sleep locations/counts, package versions, test setup/teardown, logging at various places, etc. I also managed to reproduce the bug locally, seemingly by updating all packages, clearing yarn cache, and reinstalling (even though I'm fairly sure I did this before).

I'm more certain now that the error is due to msw arbitrarily wrapping things in promises. Now the magic number of sleeps seems to be 3, and may need to be increased in the future depending on msw implementation details. I've added a comment about this. I've also determined I could get rid of some test setup/teardown functions.

@netlify
Copy link

netlify bot commented Sep 20, 2023

Deploy Preview for monarch-app ready!

Name Link
🔨 Latest commit 436732a
🔍 Latest deploy log https://app.netlify.com/sites/monarch-app/deploys/650a48ea48c9100008ff8711
😎 Deploy Preview https://deploy-preview-333--monarch-app.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link
Collaborator

@glass-ships glass-ships left a comment

Choose a reason for hiding this comment

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

definitely some weird behaviour, nice find!

@vincerubinetti vincerubinetti merged commit 29de3cc into main Sep 20, 2023
9 checks passed
@vincerubinetti vincerubinetti deleted the unit-setup branch September 20, 2023 04:53
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.

2 participants