Skip to content

feat: add support for TypeScript tests in @carbon/react#22150

Open
adamalston wants to merge 3 commits intocarbon-design-system:mainfrom
adamalston:16361-typescript-test
Open

feat: add support for TypeScript tests in @carbon/react#22150
adamalston wants to merge 3 commits intocarbon-design-system:mainfrom
adamalston:16361-typescript-test

Conversation

@adamalston
Copy link
Copy Markdown
Contributor

@adamalston adamalston commented Apr 30, 2026

Partially addresses #16361
Closes #20439, we just need to put together some docs on how to repeat this on other components into #16361

Added support for TypeScript tests in @carbon/react.

Changelog

New

  • Added support for TypeScript tests in @carbon/react.

Testing / Reviewing

I left the TODO on the component in the test because there are issues in it and it's used by multiple tests. That issue is unrelated to the changes in this pull request, so I plan to follow-up on it in a future PR, someone thinks it should be addressed in this one.

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
Copy Markdown

netlify Bot commented Apr 30, 2026

Deploy Preview for v11-carbon-react ready!

Built without sensitive environment variables

Name Link
🔨 Latest commit c7ac1a7
🔍 Latest deploy log https://app.netlify.com/projects/v11-carbon-react/deploys/69f2c5ba6cb0400008a4f182
😎 Deploy Preview https://deploy-preview-22150--v11-carbon-react.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

@netlify
Copy link
Copy Markdown

netlify Bot commented Apr 30, 2026

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

Name Link
🔨 Latest commit c7ac1a7
🔍 Latest deploy log https://app.netlify.com/projects/v11-carbon-web-components/deploys/69f2c5ba4c3f720008d11071
😎 Deploy Preview https://deploy-preview-22150--v11-carbon-web-components.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 30, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 95.06%. Comparing base (cb5b293) to head (c7ac1a7).

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #22150      +/-   ##
==========================================
- Coverage   95.06%   95.06%   -0.01%     
==========================================
  Files         541      541              
  Lines       45217    45217              
  Branches     6507     6507              
==========================================
- Hits        42985    42984       -1     
- Misses       2103     2104       +1     
  Partials      129      129              
Flag Coverage Δ
main-packages 89.13% <ø> (ø)
web-components 97.87% <ø> (-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.

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.

Research and plan how to convert test files to .ts

1 participant