Skip to content

Conversation

@stipsan
Copy link
Member

@stipsan stipsan commented Nov 4, 2025

Fixes a regression in #2138 for windows

@stipsan stipsan changed the title chore: test playground on windows as well fix: handle import(configFile) on windows regression Nov 4, 2025
@stipsan
Copy link
Member Author

stipsan commented Nov 4, 2025

Hey @copilot can you fix the failing windows tests?

@stipsan stipsan requested a review from Copilot November 4, 2025 20:51
Copy link

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

This PR adds Windows support to the build and test suite by removing platform-specific test skipping and fixing Windows-specific compatibility issues.

  • Removed test.skipIf(isWindows) from all test cases to enable Windows CI testing
  • Fixed Windows path handling in config loading by converting absolute paths to file URLs
  • Updated GitHub Actions workflow to run playground builds on both Ubuntu and Windows
  • Fixed pnpm filter glob syntax in package.json scripts

Reviewed Changes

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

Show a summary per file
File Description
test/node.test.ts Removed Windows test skip condition to run tests on Windows
test/cli.test.ts Removed Windows test skip conditions from all test cases
src/node/core/config/loadConfig.ts Added Windows-compatible path-to-URL conversion for imports and error logging
package.json Changed playground script glob quotes from single to double quotes for Windows compatibility
.github/workflows/main.yml Added Windows to the test matrix for playground builds

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +35 to +39
console.error('tsx import error', error, {
configFile,
configFileUrl,
'import.meta.url': import.meta.url,
})
Copy link

Copilot AI Nov 4, 2025

Choose a reason for hiding this comment

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

Debug console.error logging should be removed before merging to production. This appears to be temporary debugging code that should either be removed or replaced with a proper logger that respects the application's logging configuration.

Copilot uses AI. Check for mistakes.
@stipsan
Copy link
Member Author

stipsan commented Nov 4, 2025

Hey @copilot can you fix the failing windows tests?

Copy link
Contributor

Copilot AI commented Nov 4, 2025

@stipsan I've opened a new pull request, #2147, to work on those changes. Once the pull request is ready, I'll request review from you.

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.

2 participants