-
Notifications
You must be signed in to change notification settings - Fork 5
fix: handle import(configFile) on windows regression
#2145
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
import(configFile) on windows regression
|
Hey @copilot can you fix the failing windows tests? |
There was a problem hiding this 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.
| console.error('tsx import error', error, { | ||
| configFile, | ||
| configFileUrl, | ||
| 'import.meta.url': import.meta.url, | ||
| }) |
Copilot
AI
Nov 4, 2025
There was a problem hiding this comment.
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.
|
Hey @copilot can you fix the failing windows tests? |
Fixes a regression in #2138 for windows