Skip to content

test(react): increase coverage for NumberInput#21839

Queued
adamalston wants to merge 2 commits intocarbon-design-system:mainfrom
adamalston:n/a-number-input
Queued

test(react): increase coverage for NumberInput#21839
adamalston wants to merge 2 commits intocarbon-design-system:mainfrom
adamalston:n/a-number-input

Conversation

@adamalston
Copy link
Contributor

No issue.

Increased test coverage for NumberInput and deleted unreachable code.

Changelog

Changed

  • Increased test coverage for NumberInput.

Removed

  • Deleted unreachable code.

Testing / Reviewing

yarn test --coverage \
  --runTestsByPath packages/react/src/components/NumberInput/__tests__/NumberInput-test.js \
  --collectCoverageFrom=packages/react/src/components/NumberInput/NumberInput.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 301b7f6
🔍 Latest deploy log https://app.netlify.com/projects/v11-carbon-web-components/deploys/69bfe7ad97d19f000827aa08
😎 Deploy Preview https://deploy-preview-21839--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 301b7f6
🔍 Latest deploy log https://app.netlify.com/projects/v11-carbon-react/deploys/69bfe7ad90a4e20008c0fadf
😎 Deploy Preview https://deploy-preview-21839--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 94.47%. Comparing base (90c16ea) to head (301b7f6).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #21839      +/-   ##
==========================================
+ Coverage   94.39%   94.47%   +0.07%     
==========================================
  Files         536      536              
  Lines       43673    43667       -6     
  Branches     6220     6275      +55     
==========================================
+ Hits        41227    41254      +27     
+ Misses       2307     2274      -33     
  Partials      139      139              
Flag Coverage Δ
main-packages 88.05% <100.00%> (+0.20%) ⬆️
web-components 97.80% <ø> (+<0.01%) ⬆️

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.

Copy link
Contributor

@heloiselui heloiselui left a comment

Choose a reason for hiding this comment

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

LGTM!

@riddhybansal riddhybansal added this pull request to the merge queue Mar 24, 2026
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to no response for status checks Mar 24, 2026
@kennylam kennylam added this pull request to the merge queue Mar 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants