Commit e51f557
fix(test): skip backslash-normalization test on non-Windows
CI on ubuntu-latest failed because the F-SCRIPTS-010 normalization test
constructed a backslash path and passed it to hash-file.mjs, expecting
the OS to resolve it to the same file. On Linux/macOS, backslashes are
literal filename characters — the file doesn't exist at the backslash
path, so hash-file errors with ENOENT before any normalization happens.
The behavior being tested (POSIX-normalize the emitted `path` field
when the input contains backslashes) is genuinely a Windows-only
concern; on POSIX the input would never contain backslashes in the
first place. Skipping on non-Windows preserves the test's intent
without fighting OS path semantics.
Pre-fix CI: ubuntu × node 20+22 — 88/89, 1 fail (this test)
Post-fix expected: ubuntu × node 20+22 — 88/89, 1 skipped (passes)
windows × node 20+22 — 89/89, 0 skipped
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 811a958 commit e51f557
1 file changed
Lines changed: 37 additions & 27 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
76 | 76 | | |
77 | 77 | | |
78 | 78 | | |
79 | | - | |
80 | | - | |
81 | | - | |
82 | | - | |
83 | | - | |
84 | | - | |
85 | | - | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
86 | 94 | | |
87 | | - | |
88 | | - | |
89 | | - | |
90 | | - | |
91 | | - | |
92 | | - | |
93 | | - | |
94 | | - | |
95 | | - | |
96 | | - | |
97 | | - | |
98 | | - | |
99 | | - | |
100 | | - | |
101 | | - | |
102 | | - | |
103 | | - | |
104 | | - | |
105 | | - | |
106 | | - | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
107 | 117 | | |
108 | 118 | | |
109 | 119 | | |
| |||
0 commit comments