-
Notifications
You must be signed in to change notification settings - Fork 26
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
STCOR-729 update test deps for react v18 #1330
Conversation
Missed a few test-related deps in #1324. Refs STCOR-729
Kudos, SonarCloud Quality Gate passed! |
await waitFor(() => { | ||
return !result.current.isLoading; | ||
if (result.current.isLoading) { |
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.
Maybe it makes sense move this part to separate function? I see it used in 4 places
if (result.current.isLoading) {
throw new Error('Kaboom');
}
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.
🤷 I see your point, but there's not a lot going on here. I can imagine this also being written as
result.current.isLoading && throw new Error('Kaboom');
in which case we'd be replacing one line with ... one other line. It's a good thing to keep in mind though.
Missed a few test-related deps in #1324. Additionally, convert from local deps/config to importing from jest-config-stripes.
Refs STCOR-729