Commit 8ac15c4
committed
test(windows): unblock primary-mode allowlist match and skip POSIX-only ci-smoke
Two unrelated test fixtures that both keep the windows-advisory advisory red:
- `packages/app/src/no-mode-picker.test.ts`: the allowlist stores entries
with POSIX-style paths but `path.relative` returns backslashes on Windows,
so the allowlist never matched and the legitimate
`context/global-sync/utils.ts` reference flagged as an offender. Normalize
`relPath` to forward slashes before comparing, mirroring the same fix
applied earlier to `agent-rename.test.ts`.
- `packages/desktop-electron/scripts/ci-smoke.test.ts`: the
"packaged smoke reports spawn failures with launch context" fixture relies
on an empty file + chmod 0o755 to hit ENOEXEC and exercise the
`Failed to launch desktop app:` branch. Windows has no equivalent (empty
files via cmd exit cleanly through a different branch), and the assertion
targets the spawn error format rather than Windows-specific launch
semantics. Gate the test with `test.skipIf(process.platform === "win32")`.
Refs #4261 parent a264f50 commit 8ac15c4
2 files changed
Lines changed: 36 additions & 24 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
51 | | - | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
52 | 55 | | |
53 | 56 | | |
54 | 57 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
114 | 114 | | |
115 | 115 | | |
116 | 116 | | |
117 | | - | |
118 | | - | |
119 | | - | |
120 | | - | |
121 | | - | |
122 | | - | |
123 | | - | |
124 | | - | |
125 | | - | |
126 | | - | |
127 | | - | |
128 | | - | |
129 | | - | |
130 | | - | |
131 | | - | |
132 | | - | |
133 | | - | |
134 | | - | |
135 | | - | |
136 | | - | |
137 | | - | |
138 | | - | |
139 | | - | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
140 | 149 | | |
0 commit comments