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

chore: Update layouts/BaseLayout tests to Vitest #3208

Merged
merged 47 commits into from
Sep 19, 2024

Conversation

nicholas-codecov
Copy link
Contributor

Description

This PR updates the tests in the layouts/BaseLayout directory to Vitest

Requires #3201

Notable Changes

  • Update BaseLayout tests
  • Update useUserAccessGate tests
  • Update InstallationHelpBanner tests
  • Convert JS index files to TS

@codecov-qa
Copy link

codecov-qa bot commented Sep 19, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 99.11%. Comparing base (9d66eb1) to head (61c44ef).
Report is 2 commits behind head on main.

✅ All tests successful. No failed tests found.

Impacted file tree graph

@@           Coverage Diff           @@
##             main    #3208   +/-   ##
=======================================
  Coverage   99.10%   99.11%           
=======================================
  Files         799      799           
  Lines       13975    13975           
  Branches     3960     3965    +5     
=======================================
+ Hits        13850    13851    +1     
+ Misses        117      116    -1     
  Partials        8        8           

see 1 file with indirect coverage changes

Components Coverage Δ
Assets 100.00% <ø> (ø)
Layouts 100.00% <ø> (ø)
Pages 98.89% <ø> (+0.01%) ⬆️
Services 99.41% <ø> (ø)
Shared 99.58% <ø> (ø)
UI 99.26% <ø> (ø)

Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 9d66eb1...61c44ef. Read the comment docs.

Copy link

codecov bot commented Sep 19, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 99.11%. Comparing base (9d66eb1) to head (61c44ef).
Report is 2 commits behind head on main.

✅ All tests successful. No failed tests found.

Additional details and impacted files

Impacted file tree graph

@@               Coverage Diff                @@
##               main      #3208        +/-   ##
================================================
+ Coverage   99.10000   99.11000   +0.01000     
================================================
  Files           799        799                
  Lines         13975      13975                
  Branches       3965       3960         -5     
================================================
+ Hits          13850      13851         +1     
+ Misses          117        116         -1     
  Partials          8          8                

see 1 file with indirect coverage changes

Components Coverage Δ
Assets 100.00% <ø> (ø)
Layouts 100.00% <ø> (ø)
Pages 98.89% <ø> (+0.01%) ⬆️
Services 99.41% <ø> (ø)
Shared 99.58% <ø> (ø)
UI 99.26% <ø> (ø)

Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 9d66eb1...61c44ef. Read the comment docs.

@codecov-notifications
Copy link

codecov-notifications bot commented Sep 19, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

✅ All tests successful. No failed tests found.

Impacted file tree graph

@@           Coverage Diff           @@
##             main    #3208   +/-   ##
=======================================
  Coverage   99.10%   99.11%           
=======================================
  Files         799      799           
  Lines       13975    13975           
  Branches     3960     3960           
=======================================
+ Hits        13850    13851    +1     
+ Misses        117      116    -1     
  Partials        8        8           

see 1 file with indirect coverage changes

Components Coverage Δ
Assets 100.00% <ø> (ø)
Layouts 100.00% <ø> (ø)
Pages 98.89% <ø> (+0.01%) ⬆️
Services 99.41% <ø> (ø)
Shared 99.58% <ø> (ø)
UI 99.26% <ø> (ø)

Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 9d66eb1...61c44ef. Read the comment docs.

Copy link

codecov-public-qa bot commented Sep 19, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 99.11%. Comparing base (9d66eb1) to head (61c44ef).

✅ All tests successful. No failed tests found.

Impacted file tree graph

@@           Coverage Diff           @@
##             main    #3208   +/-   ##
=======================================
  Coverage   99.10%   99.11%           
=======================================
  Files         799      799           
  Lines       13975    13975           
  Branches     3965     3965           
=======================================
+ Hits        13850    13851    +1     
+ Misses        117      116    -1     
  Partials        8        8           

see 1 file with indirect coverage changes

Components Coverage Δ
Assets 100.00% <ø> (ø)
Layouts 100.00% <ø> (ø)
Pages 98.89% <ø> (+0.01%) ⬆️
Services 99.41% <ø> (ø)
Shared 99.58% <ø> (ø)
UI 99.26% <ø> (ø)

Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 9d66eb1...61c44ef. Read the comment docs.

@nicholas-codecov nicholas-codecov force-pushed the chore-vitest-update-base-layout-tests branch from d45ce9f to 41becb1 Compare September 19, 2024 12:36
Copy link

codecov bot commented Sep 19, 2024

Bundle Report

Bundle size has no change ✅

@codecov-releaser
Copy link
Contributor

codecov-releaser commented Sep 19, 2024

✅ Deploy preview for gazebo ready!

Previews expire after 1 month automatically.

Storybook

Commit Created Cloud Enterprise
41becb1 Thu, 19 Sep 2024 12:43:03 GMT Expired Expired
98f91e0 Thu, 19 Sep 2024 13:00:34 GMT Expired Expired
532ffce Thu, 19 Sep 2024 13:13:55 GMT Expired Expired
e25f145 Thu, 19 Sep 2024 13:45:10 GMT Expired Expired
61c44ef Thu, 19 Sep 2024 14:11:24 GMT Cloud Enterprise

@nicholas-codecov nicholas-codecov force-pushed the chore-vitest-update-base-layout-tests branch from 41becb1 to 98f91e0 Compare September 19, 2024 12:51
@codecov-staging
Copy link

codecov-staging bot commented Sep 19, 2024

Bundle Report

Bundle size has no change ✅

Bundle name Size Change
gazebo-staging-array-push 6.0MB 0 bytes

@nicholas-codecov nicholas-codecov force-pushed the chore-vitest-update-base-layout-tests branch from 98f91e0 to 532ffce Compare September 19, 2024 13:06
)
}),
graphql.mutation('updateDefaultOrganization', (info) => {
return HttpResponse.json({ data: {} }, { status: 200 })
Copy link
Contributor

Choose a reason for hiding this comment

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

In App.test.tsx you added { status: 200 } as an example of setting status which I'm cool with, but since 200 is default, IMO we shouldn't make explicitly stating it a pattern across the codebase. Thoughts?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yea we can remove these

Copy link
Contributor

Choose a reason for hiding this comment

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

tyty appreciate

Copy link
Contributor

@spalmurray-codecov spalmurray-codecov left a comment

Choose a reason for hiding this comment

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

One comment, lgtm otherwise

@nicholas-codecov nicholas-codecov added this pull request to the merge queue Sep 19, 2024
Merged via the queue into main with commit ba1db36 Sep 19, 2024
64 checks passed
@nicholas-codecov nicholas-codecov deleted the chore-vitest-update-base-layout-tests branch September 19, 2024 14:22
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