Commit 2a0ca8e
test(backend): mock helm CLI in helm/status route test
The `GET /api/installation/helm/status` test called the real route, which
spawns the `helm` binary. On CI runners without helm the spawn hangs until
Bun's 5000ms per-test timeout, failing the suite. (This was masked before
the coverage step started propagating exit codes.)
Mock `helmService.checkHelmAvailable` with a local restore, matching the
pattern used throughout installation.test.ts, so the test is deterministic
and no longer depends on helm being installed.
Co-Authored-By: Claude Opus 4 <noreply@anthropic.com>1 parent 9dd7175 commit 2a0ca8e
1 file changed
Lines changed: 16 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
6 | 7 | | |
7 | 8 | | |
8 | 9 | | |
| |||
1288 | 1289 | | |
1289 | 1290 | | |
1290 | 1291 | | |
1291 | | - | |
1292 | | - | |
1293 | | - | |
1294 | | - | |
| 1292 | + | |
| 1293 | + | |
| 1294 | + | |
| 1295 | + | |
| 1296 | + | |
| 1297 | + | |
| 1298 | + | |
| 1299 | + | |
| 1300 | + | |
| 1301 | + | |
| 1302 | + | |
| 1303 | + | |
| 1304 | + | |
| 1305 | + | |
| 1306 | + | |
1295 | 1307 | | |
1296 | 1308 | | |
1297 | 1309 | | |
| |||
0 commit comments