-
-
Notifications
You must be signed in to change notification settings - Fork 32.4k
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
[core] Fix running mocha related scripts on Windows locally #44664
Merged
ZeeshanTamboli
merged 8 commits into
mui:master
from
ChristopherJamesL:update-unit-test-docs
Dec 16, 2024
Merged
Changes from 4 commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
d609858
Update contributing documentation for Windows users to fix test:unit …
ChristopherJamesL b80dfbe
revert root package.json nx_test_unit value
ChristopherJamesL f4fe1e3
revert rating.test.js
ChristopherJamesL 7d09f29
pnpm prettier
ChristopherJamesL 10eb10d
Merge branch 'master' into update-unit-test-docs
ZeeshanTamboli 5983427
fix running mocha scripts on Windows OS
ZeeshanTamboli 7753afc
Merge branch 'master' into update-unit-test-docs
ZeeshanTamboli a5e98a3
Merge branch 'master' into update-unit-test-docs
ZeeshanTamboli File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
I haven't looked close, but at first sight, this can't fly, we can't possibly ask Windows contributors to change the source to run the tests, it's horrible DX.
Can we instead change the script source?
Either this was broken in #44143 or it's mochajs/mocha#5219. I can't easily test this on Windows.
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.
Yea I understand. I tried to look further into it to see if I could have a command that runs the tests successfully on both windows and mac but I wasn't able to find one.
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.
I am a Windows user, adding double quotes works, as shown in mochajs/mocha#5219. For example:
@ChristopherJamesL Can you try the change and confirm? It needs to be applied to other scripts too.