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

STCOR-729 update test deps for react v18 #1330

Merged
merged 6 commits into from
Jul 27, 2023
Merged

STCOR-729 update test deps for react v18 #1330

merged 6 commits into from
Jul 27, 2023

Conversation

zburke
Copy link
Member

@zburke zburke commented Jul 19, 2023

Missed a few test-related deps in #1324. Additionally, convert from local deps/config to importing from jest-config-stripes.

Refs STCOR-729

zburke added 2 commits July 19, 2023 11:19
Missed a few test-related deps in #1324.

Refs STCOR-729
@zburke zburke requested a review from JohnC-80 July 19, 2023 21:07
@github-actions
Copy link

github-actions bot commented Jul 19, 2023

Jest Unit Test Statistics

70 tests  ±0   70 ✔️ ±0   18s ⏱️ -2s
11 suites ±0     0 💤 ±0 
  1 files   ±0     0 ±0 

Results for commit 763e85b. ± Comparison against base commit 679c02d.

♻️ This comment has been updated with latest results.

@github-actions
Copy link

github-actions bot commented Jul 19, 2023

BigTest Unit Test Statistics

    1 files  ±0      1 suites  ±0   10s ⏱️ -1s
271 tests ±0  266 ✔️ ±0  5 💤 ±0  0 ±0 
274 runs  ±0  269 ✔️ ±0  5 💤 ±0  0 ±0 

Results for commit 763e85b. ± Comparison against base commit 679c02d.

♻️ This comment has been updated with latest results.

@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

@zburke zburke requested a review from a team July 27, 2023 17:30
await waitFor(() => {
return !result.current.isLoading;
if (result.current.isLoading) {
Copy link
Contributor

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');
}

Copy link
Member Author

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.

@zburke zburke merged commit e347fbe into master Jul 27, 2023
@zburke zburke deleted the STCOR-729-tests branch July 27, 2023 18:29
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.

3 participants