fix(tui): type execFileNoThrow stdio/ChildProcess and make memoryMonitor critical test heap-independent (#40612)

Salvaged from #40415; re-verified on main, tightened, tested.

Co-authored-by: psionic73 <psionic73@users.noreply.github.com>
This commit is contained in:
Teknium
2026-06-07 18:23:42 -07:00
committed by GitHub
co-authored by psionic73
parent 6bdc4c0231
commit 4ce9caed04
2 changed files with 6 additions and 6 deletions
+1 -1
View File
@@ -42,7 +42,7 @@ describe('startMemoryMonitor thresholds (#34095)', () => {
// ceiling. With relative thresholds (~88%), 2.5GB is well within normal.
const onCritical = vi.fn()
withHeap(2.5 * GB)
stop = startMemoryMonitor({ intervalMs: 1, onCritical })
stop = startMemoryMonitor({ criticalBytes: 7 * GB, highBytes: 5 * GB, intervalMs: 1, onCritical })
await vi.advanceTimersByTimeAsync(5)