Skip to content

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

Merged
heloiselui merged 5 commits into
carbon-design-system:mainfrom
adamalston:16361-typescript-test
May 14, 2026
Merged

feat: add support for TypeScript tests in @carbon/react#22150
heloiselui merged 5 commits into
carbon-design-system:mainfrom
adamalston:16361-typescript-test

Conversation

@adamalston

@adamalston adamalston commented Apr 30, 2026

Copy link
Copy Markdown
Contributor

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

netlify Bot commented Apr 30, 2026

Copy link
Copy Markdown

Deploy Preview for v11-carbon-react ready!

Built without sensitive environment variables

Name Link
🔨 Latest commit 8205286
🔍 Latest deploy log https://app.netlify.com/projects/v11-carbon-react/deploys/6a03842fed102a0008b70e78
😎 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

netlify Bot commented Apr 30, 2026

Copy link
Copy Markdown

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

Name Link
🔨 Latest commit 8205286
🔍 Latest deploy log https://app.netlify.com/projects/v11-carbon-web-components/deploys/6a03842ffe5f730008bee846
😎 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

codecov Bot commented Apr 30, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 95.49%. Comparing base (4ac71d0) to head (8205286).
⚠️ Report is 8 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #22150      +/-   ##
==========================================
- Coverage   95.49%   95.49%   -0.01%     
==========================================
  Files         582      582              
  Lines       50320    50320              
  Branches     6742     6776      +34     
==========================================
- Hits        48053    48052       -1     
- Misses       2135     2136       +1     
  Partials      132      132              
Flag Coverage Δ
main-packages 89.18% <ø> (ø)
web-components 98.07% <ø> (ø)

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.

Comment on lines +8 to +10
// TODO: Investigate whether migrating `config/jest-config-carbon` to
// TypeScript, or another similar change, would eliminate the need for these
// types.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

We can do this and do a one-off major/breaking change for that package if need be. We've done that before for the smaller config packages that have a reduced blast radius compared to the more mainstream packages where we don't do major version bumps.

@netlify

netlify Bot commented May 12, 2026

Copy link
Copy Markdown

Deploy Preview for carbon-elements ready!

Name Link
🔨 Latest commit 8205286
🔍 Latest deploy log https://app.netlify.com/projects/carbon-elements/deploys/6a03842f9e94830008464a5f
😎 Deploy Preview https://deploy-preview-22150--carbon-elements.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.

@heloiselui heloiselui added this pull request to the merge queue May 14, 2026
Merged via the queue into carbon-design-system:main with commit ebc609c May 14, 2026
40 checks passed
@adamalston adamalston deleted the 16361-typescript-test branch May 15, 2026 03:21
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.

Research and plan how to convert test files to .ts

3 participants