Skip to content

fix(eng/tsconfigs): add customConditions: ["browser"] to test.browser.json#38133

Merged
deyaaeldeen merged 1 commit intomainfrom
fix/browser-test-customconditions
Apr 14, 2026
Merged

fix(eng/tsconfigs): add customConditions: ["browser"] to test.browser.json#38133
deyaaeldeen merged 1 commit intomainfrom
fix/browser-test-customconditions

Conversation

@deyaaeldeen
Copy link
Copy Markdown
Member

@deyaaeldeen deyaaeldeen commented Apr 14, 2026

Add customConditions: ["browser"] to eng/tsconfigs/test.browser.json to match src.browser.json. Without this, #platform/* subpath imports with a "browser" condition don't resolve correctly in browser test configs.

@deyaaeldeen deyaaeldeen requested a review from a team as a code owner April 14, 2026 01:32
Copilot AI review requested due to automatic review settings April 14, 2026 01:32
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Aligns the browser test TypeScript configuration with the existing browser source configuration so conditional exports (e.g., "browser" condition used by #platform/*-style imports) resolve correctly during browser test type-checking.

Changes:

  • Add compilerOptions.customConditions: ["browser"] to eng/tsconfigs/test.browser.json to match eng/tsconfigs/src.browser.json.

….json

The shared browser source tsconfig (src.browser.json) already has
customConditions: ["browser"], but the test browser tsconfig was missing it.
This means browser test files that import from packages using #platform/*
subpath imports with a "browser" condition would not resolve to the correct
browser-specific implementation during type-checking.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@deyaaeldeen deyaaeldeen force-pushed the fix/browser-test-customconditions branch from bd6333b to b05f550 Compare April 14, 2026 15:06
@deyaaeldeen deyaaeldeen requested a review from xirzec April 14, 2026 16:04
@deyaaeldeen deyaaeldeen merged commit 4dd7bfd into main Apr 14, 2026
14 checks passed
@deyaaeldeen deyaaeldeen deleted the fix/browser-test-customconditions branch April 14, 2026 20:42
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.

3 participants