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