-
-
Notifications
You must be signed in to change notification settings - Fork 3k
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
test: fix npm scripts on windows #5219
Conversation
This is a bit unintuitive to me – my impression is that the quotes should be there so that the js-based glob resolves rather than the shell glob 🤔 |
@voxpelli I'm not a glob expert, in my book if it works it works, but obviously if you don't feel comfortable merging that's fine. I'll dig deeper as obviously the tests are now failing on other operating* systems |
Investigating remaining issues now, ref https://github.com/mark-wiemer/mocha/pull/1: |
I'm able to reproduce this issue locally with Node 22 on Windows, looks like the same err message. Going to see if different versions of 22.x work: Full output
|
|
--experimental-detect-module is default in Node 22.7 and later
Added tests to distinguish between |
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.
Looks good to me! Thanks 🙏
Extra thanks for fixing the tests for latest Node version!
Closes #5220
Single quotes weren't resolved correctly on Windows. The single quotes don't seem necessary on any OS as they were never wrapping a space character.
Knip also reported prettier as unused, so I've added prettier to Knip's ignore list.
npm test
is now passing on a clean install from on Windows, where it was failing before.Ref https://github.com/mark-wiemer/mocha/pull/1 for status checks