Skip to content

Fix test:api on windows - #4917

Merged
Wesley Wigham (weswigham) merged 2 commits into
microsoft:mainfrom
weswigham:fix-test-api-on-windows
Aug 19, 2026
Merged

Fix test:api on windows#4917
Wesley Wigham (weswigham) merged 2 commits into
microsoft:mainfrom
weswigham:fix-test-api-on-windows

Conversation

@weswigham

Copy link
Copy Markdown
Member

Something about the chained npm commands made the globbing pattern for test lookup fail to find any files on windows. Just inlining the command from the package.json into Herebyfile.mjs works fine as a workaround, though.

Also fixes the apparently broken-on-windows API test.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Fixes Windows API test discovery and normalizes path assertions across platforms.

Changes:

  • Runs API tests directly from the native-preview workspace.
  • Normalizes outDir before comparison in async and generated sync tests.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

File Description
Herebyfile.mjs Invokes Node’s test runner directly.
_packages/native-preview/test/async/api.test.ts Normalizes the asserted output path.
_packages/native-preview/test/sync/api.test.ts Mirrors the async test update.

💡 Add a code-review agent skill for context-aware, tailored reviews. Learn more in the docs.

Comment thread Herebyfile.mjs Outdated
@weswigham
Wesley Wigham (weswigham) added this pull request to the merge queue Aug 19, 2026
Merged via the queue into microsoft:main with commit 16c2552 Aug 19, 2026
21 checks passed
@weswigham
Wesley Wigham (weswigham) deleted the fix-test-api-on-windows branch August 19, 2026 22:57
Jake Bailey (jakebailey) pushed a commit to jakebailey/TypeScript that referenced this pull request Aug 19, 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.

3 participants