-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Fix: Windows development #7925
base: main
Are you sure you want to change the base?
Fix: Windows development #7925
Conversation
Thanks for the PR! I just tested it locally on my Windows machine and confirmed that the tests actually run now, but I seem to get a bunch of errors related missing translations due to the i18n files not being properly parsed or something. Pretty new to developing to Windows so I'll poke around and see if I patch a couple of things, but just wanted to know what configuration you are running on your end. |
I only get tests working enough to test my other PR - but I'll see if the other failing tests are easy fixes. |
Ok, I got it working better. It will now fail a little bit the first run and then be ok. long winded explanation: Unfortunately this code is unreliable in windows:
There is a package - write-file-atomic - which is better but still fails in windows sometimes. In fact we have to have a patched version of jest to deal with this :/ and the only way to fix this 100% for windows is to make the resolver async or change the approach - for instance I would make this a transform and not done as part of the resolution, which would fix the problem. But thats a bigger change. I can live with tests failing the first time. |
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.
Thanks for the updates, confirmed that the tests are passing on the second run on windows and that things seems to run fine on MacOS. Will have to dig into patching writeCacheFile
later but I think this is fine for now, will need to leave a note in the docs/FAQ
rebased - ready for review and merge |
any chance of a second approval and merge? |
Closes #7924
✅ Pull Request Checklist:
📝 Test Instructions:
I know the core team is all on Mac - maybe check yarn test still works there.
Part of the fix taken from this suggestion: #2429 (comment)
🧢 Your Project:
Saxo Bank