chore(ci): run tests on windows#319
Conversation
This stack of pull requests is managed by Graphite. Learn more about stacking. |
|
Claude finished @binoy14's task in 3m 26s —— View job Windows Path Handling Issues - Patch ReadyI've identified 3 critical Windows path handling bugs and created a patch file to fix them. Issues Found1. execScript.ts:46 - URL All three issues stem from using Patch File:
|
Coverage Report
File Coverage
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
59452b4 to
8d7b10c
Compare
8d7b10c to
1512644
Compare
|
@claude can you compile a list of tests that are failing on windows and create a plan on how to fix them? |
This comment was marked as outdated.
This comment was marked as outdated.
|
@claude Start implementing the fix. Maybe think if you can make shared utils for anything for ease |
This comment was marked as resolved.
This comment was marked as resolved.
|
@claude no commit is pushed, can you just create .patch that I can copy paste and apply |
This comment was marked as resolved.
This comment was marked as resolved.
01a4988 to
0b2f4ab
Compare
ea9bc97 to
6737036
Compare
rexxars
left a comment
There was a problem hiding this comment.
Kudos for persisting on this, had no idea it would take this amount of changes!
| const {stdout} = await runCommand('init --help') | ||
|
|
||
| expect(stdout).toMatchInlineSnapshot(String.raw` | ||
| expect(stdout).toMatchInlineSnapshot(` |
There was a problem hiding this comment.
These are fun - what caused these changes? Will they survive a snapshot update, I wonder?
There was a problem hiding this comment.
There was a change to lint rule which caused autofix adding String.raw to all snapshot tests but the problem with using that is --u or watch mode update didn't fix these. I removed most of them but I think these were missed in rebase. It should be okay 🤞

TL;DR
Add Windows support to the Sanity CLI by fixing path handling and test compatibility issues.
What changed?
normalizePathutility function to standardize path formatsHow to test?
Why make this change?
The Sanity CLI previously had issues on Windows due to path format differences between operating systems. This change ensures that the CLI works consistently across platforms by properly handling path separators, line endings, and other OS-specific behaviors. Adding Windows to the CI test matrix helps catch platform-specific issues early in the development process.