Skip to content

chore(web): cleanup web/src/app/browser/src/test-index.ts exports 🎼#15899

Merged
ermshiperete merged 2 commits into
epic/web-corefrom
chore/web/15894_test-index
May 4, 2026
Merged

chore(web): cleanup web/src/app/browser/src/test-index.ts exports 🎼#15899
ermshiperete merged 2 commits into
epic/web-corefrom
chore/web/15894_test-index

Conversation

@ermshiperete
Copy link
Copy Markdown
Contributor

@ermshiperete ermshiperete commented Apr 30, 2026

The exports of test-index.ts were intended to be used by tests only, but over time they contained also exports that were consumed elsewhere, e.g. in UI classes like kmwuibutton.ts. This change removes unused exports, moves test-only classes to a unitTestEndPoints container and marks test-only types with @internal.

Fixes: #15894
Build-bot: skip build:web
Test-bot: skip

The export of `test-index.ts` were intended to be used by tests only,
but over time they contained also exports that were consumed else where,
e.g. in UI classes like `kmwuibutton.ts`. This change removes unused
exports, moves test-only classes to a `unitTestEndPoints` container and
marks test-only types with `@internal`.

Build-bot: skip build:web
Test-bot: skip
@keymanapp-test-bot
Copy link
Copy Markdown

keymanapp-test-bot Bot commented Apr 30, 2026

User Test Results

Test specification and instructions

User tests are not required

Test Artifacts

  • Web
    • KeymanWeb Test Home - build : all tests passed (no artifacts on BuildLevel "build")

@keymanapp-test-bot keymanapp-test-bot Bot changed the title chore(web): cleanup web/src/app/browser/src/test-index.ts exports chore(web): cleanup web/src/app/browser/src/test-index.ts exports 🎼 Apr 30, 2026
The convention is to use the `.d.ts` extension for typescript types, and
that's what is used elsewhere in the `package.json` file. This change
fixes the two instances that had `.d.js`.
Copy link
Copy Markdown
Member

@mcdurdin mcdurdin left a comment

Choose a reason for hiding this comment

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

This is great - small cleanup that clarifies codebase considerably!

@ermshiperete ermshiperete merged commit 1b8f37e into epic/web-core May 4, 2026
7 of 8 checks passed
@github-project-automation github-project-automation Bot moved this from Todo to Done in Keyman May 4, 2026
@ermshiperete ermshiperete deleted the chore/web/15894_test-index branch May 4, 2026 10:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

2 participants