Commit 81b8e4f
fix: strip ANSI codes before Vite ready detection in UVM smoke script
GitHub Actions sets FORCE_COLOR=1, which makes Vite output ANSI escape
codes (bold) around the port number in the 'Local: http://...' line:
http://127.0.0.1:\e[1m43173\e[22m/
This broke the text.includes(baseUrl) check — 'http://127.0.0.1:43173'
never matched, so the script always timed out after 45s.
Fix: strip ANSI sequences with /\x1b\[[0-9;]*m/g before matching.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent 054a41f commit 81b8e4f
1 file changed
Lines changed: 4 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
185 | 185 | | |
186 | 186 | | |
187 | 187 | | |
188 | | - | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
189 | 192 | | |
190 | 193 | | |
191 | 194 | | |
| |||
0 commit comments