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

test: added unit tests for SwitcherItem component to improve coverage #17876

Merged

Conversation

mariat189
Copy link
Contributor

Closes #17494

This PR adds unit tests for the SwitcherItem component to increase its coverage by ensuring its proper rendering and functionality. The tests verify that the skeleton displays with the correct classes, supports custom class names etc.

Changelog

Changed

  • Increased the coverage for SwitcherItem SwitcherItem

Testing / Reviewing

  • Run the test suite to ensure that all new tests pass.
  • Review the tests for clarity and coverage.

Additional Notes

  • Please let me know if any further modifications are needed or if you have any questions regarding the changes.

@mariat189 mariat189 requested a review from a team as a code owner October 24, 2024 18:36
Copy link

netlify bot commented Oct 24, 2024

Deploy Preview for v11-carbon-web-components ready!

Name Link
🔨 Latest commit 1dc1c10
🔍 Latest deploy log https://app.netlify.com/sites/v11-carbon-web-components/deploys/6732f4ea2e2a8a000856b8da
😎 Deploy Preview https://deploy-preview-17876--v11-carbon-web-components.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

netlify bot commented Oct 24, 2024

Deploy Preview for carbon-elements ready!

Name Link
🔨 Latest commit 1dc1c10
🔍 Latest deploy log https://app.netlify.com/sites/carbon-elements/deploys/6732f4ea0d9f950008421976
😎 Deploy Preview https://deploy-preview-17876--carbon-elements.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

netlify bot commented Oct 24, 2024

Deploy Preview for v11-carbon-react ready!

Built without sensitive environment variables

Name Link
🔨 Latest commit 1dc1c10
🔍 Latest deploy log https://app.netlify.com/sites/v11-carbon-react/deploys/6732f4ea3472bf0008f63bce
😎 Deploy Preview https://deploy-preview-17876--v11-carbon-react.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

codecov bot commented Oct 24, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 81.92%. Comparing base (8713091) to head (1dc1c10).
Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #17876      +/-   ##
==========================================
+ Coverage   81.84%   81.92%   +0.08%     
==========================================
  Files         404      404              
  Lines       14095    14095              
  Branches     4413     4364      -49     
==========================================
+ Hits        11536    11548      +12     
+ Misses       2397     2385      -12     
  Partials      162      162              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Member

@emyarod emyarod left a comment

Choose a reason for hiding this comment

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

looks good to me!

@mariat189
Copy link
Contributor Author

Hi @kennylam , can you please review this?

@kennylam kennylam added this pull request to the merge queue Nov 12, 2024
Merged via the queue into carbon-design-system:main with commit 4e5ffb2 Nov 12, 2024
40 checks passed
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.

Increase SwitcherItem unit test coverage
3 participants