Skip to content

feat: export per-component selectors - #4842

Open
bmv437 wants to merge 1 commit into
cloudscape-design:mainfrom
bmv437:feat/export-per-component-test-utils
Open

feat: export per-component selectors#4842
bmv437 wants to merge 1 commit into
cloudscape-design:mainfrom
bmv437:feat/export-per-component-test-utils

Conversation

@bmv437

@bmv437 bmv437 commented Jul 28, 2026

Copy link
Copy Markdown
Contributor

Description

PR #4750 added per-component export entries for the DOM test-utils wrappers. This adds the
matching entries for the selectors wrappers.

Motivation: consumers who re-export or extend a subset of Cloudscape components need to import
individual wrappers so they can assemble their own ElementWrapper. Today the only selectors
entry point is the ./test-utils/selectors barrel, and importing the barrel adds the finders for
every component to the shared ElementWrapper. There is no way to narrow that down or remove
components from it. With per-component entry points, consumers can import just the wrappers they
want. The DOM side already supports this, but selectors did not.

Related links, issue #, if available: n/a

How has this been tested?

Added a unit test for getComponentsExports in build-tools/tasks/__tests__/package-json.test.js

Review checklist

The following items are to be evaluated by the author(s) and the reviewer(s).

Correctness

  • Changes include appropriate documentation updates.
  • Changes are backward-compatible if not indicated, see CONTRIBUTING.md.
  • Changes do not include unsupported browser features, see CONTRIBUTING.md.
  • Changes were manually tested for accessibility, see accessibility guidelines.

Security

Testing

  • Changes are covered with new/existing unit tests?
  • Changes are covered with new/existing integration tests?

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@bmv437
bmv437 requested a review from a team as a code owner July 28, 2026 20:10
@bmv437
bmv437 requested review from ernst-dev and removed request for a team July 28, 2026 20:10
@bmv437 bmv437 changed the title feat(test-utils): export per-component selectors feat: export per-component selectors Jul 28, 2026
@codecov

codecov Bot commented Aug 3, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 97.63%. Comparing base (e9c0c76) to head (19a49e8).
⚠️ Report is 9 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #4842   +/-   ##
=======================================
  Coverage   97.63%   97.63%           
=======================================
  Files         957      957           
  Lines       31097    31097           
  Branches    11434    11435    +1     
=======================================
  Hits        30361    30361           
+ Misses        729      689   -40     
- Partials        7       47   +40     

☔ View full report in Codecov by Harness.
📢 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.

1 participant