Skip to content

test(react): increase coverage for Slider#21837

Draft
adamalston wants to merge 1 commit intocarbon-design-system:mainfrom
adamalston:n/a-slider-test
Draft

test(react): increase coverage for Slider#21837
adamalston wants to merge 1 commit intocarbon-design-system:mainfrom
adamalston:n/a-slider-test

Conversation

@adamalston
Copy link
Contributor

@adamalston adamalston commented Mar 15, 2026

No issue.

Increased test coverage for Slider and deleted unreachable code.

Changelog

Changed

  • Increased test coverage for Slider.

Removed

  • Deleted unreachable code.

Testing / Reviewing

yarn test --coverage \
  --runTestsByPath packages/react/src/components/Slider/__tests__/Slider-test.js \
  --collectCoverageFrom=packages/react/src/components/Slider/Slider.tsx

PR Checklist

As the author of this PR, before marking ready for review, confirm you:

  • Reviewed every line of the diff
  • Updated documentation and storybook examples
  • Wrote passing tests that cover this change
  • Addressed any impact on accessibility (a11y)
  • Tested for cross-browser consistency
  • Validated that this code is ready for review and status checks should pass

More details can be found in the pull request guide

@netlify
Copy link

netlify bot commented Mar 15, 2026

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

Name Link
🔨 Latest commit 833f819
🔍 Latest deploy log https://app.netlify.com/projects/v11-carbon-web-components/deploys/69b72eb643fd810007deed53
😎 Deploy Preview https://deploy-preview-21837--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 project configuration.

@netlify
Copy link

netlify bot commented Mar 15, 2026

Deploy Preview for v11-carbon-react ready!

Built without sensitive environment variables

Name Link
🔨 Latest commit 833f819
🔍 Latest deploy log https://app.netlify.com/projects/v11-carbon-react/deploys/69b72eb6f923fc000857224f
😎 Deploy Preview https://deploy-preview-21837--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 project configuration.

@codecov
Copy link

codecov bot commented Mar 15, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 87.78%. Comparing base (69d989e) to head (833f819).

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #21837      +/-   ##
==========================================
+ Coverage   87.75%   87.78%   +0.03%     
==========================================
  Files         536      536              
  Lines       43637    43631       -6     
  Branches     6696     6719      +23     
==========================================
+ Hits        38293    38301       +8     
+ Misses       5193     5179      -14     
  Partials      151      151              
Flag Coverage Δ
main-packages 88.14% <100.00%> (+0.19%) ⬆️
web-components 87.59% <ø> (-0.02%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@adamalston
Copy link
Contributor Author

I don't plan to mark this pull request as ready for review until some of my earlier pull requests have been reviewed. I want to avoid diverting attention from them. Otherwise, these changes are ready to go.

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.

1 participant