-
Notifications
You must be signed in to change notification settings - Fork 6
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 unit test failures on gh-actions #315
Conversation
✅ Deploy Preview for monarch-app ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good; I left a note about clarifying a bit of code, but it all looks reasonable. Seems the tests are passing now, too, so kudos. Nice catch on the configuration key for "prettier-plugin-css-order", too.
@@ -38,6 +38,7 @@ export const apiCall = async (): Promise<void> => { | |||
*/ | |||
await sleep(); | |||
await sleep(); | |||
await sleep(10); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Perhaps a comment here about why it's 10 seconds, in addition to the two non-parameterized calls above, would be nice.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unfortunately, the 10ms is arbitrary and I really don't know why the error is happening. I can't replicate it locally.
I'll add a generic comment to this effect, also leave this PR open a little longer (maybe til next week) to keep investigating.
Merging this so PRs stop failing, but I'm setting a reminder for myself to keep investigating. |
apiCall
util call due to unknown cause. add arbitrary timeout (see issue linked in code comment) in lieu of adding whole new package@testing-library/vue
just for one functionwaitFor
and rewriting all unit tests that useapiCall
.