mirror of
https://github.com/debpalash/VoiceStudio.git
synced 2026-12-06 05:16:16 +08:00
Two tests failed the 0.5.x release rehearsal on slow shared runners only: - Windows on Arm: the fault-event script test ran a real Get-WinEvent query, whose first read of the Application log stalled past 30 s. The scripts are now checked by the PowerShell parser without running, covering the trust script too, and a cross-platform test proves runProbe still settles at its deadline when the probe hangs and an orphan holds its output, so a stalled lookup never delays a report. - Intel macOS: setup-gate's first test loads the lazy setup wizard, which took longer than Testing Library's default 1 s wait. Every jsdom suite now gets a slow-runner allowance for findBy*/waitFor (20 s in CI, 4 s locally, below each test limit), replacing per-file overrides.
11 lines
622 B
JavaScript
11 lines
622 B
JavaScript
// Vitest setup for the jsdom suites (renderer and shared).
|
|
//
|
|
// Testing Library gives findBy*/waitFor 1 s by default, far below the per-test limit the
|
|
// configs already raise for shared release runners (Intel macOS, Windows ARM). There, a
|
|
// first render that loads a lazily imported screen alone can take over a second, so a
|
|
// passing test failed as "Unable to find an element". Waits get the same slow-runner
|
|
// allowance, kept below the test limit so a real miss still names the missing element.
|
|
import { configure } from '@testing-library/react';
|
|
|
|
configure({ asyncUtilTimeout: process.env.CI ? 20_000 : 4_000 });
|