Skip to content

Commit b4015bf

Browse files
committed
test(void): bound optional runtime availability probes
Stop an unresponsive runtime version probe after ten seconds so test discovery can skip unavailable optional runtimes instead of hanging before Vitest timeouts apply.
1 parent 94bee7c commit b4015bf

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎packages/void/test/integration/pages-target-assets.test.ts‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@ const targets = [
2121
];
2222

2323
for (const { target, command, args } of targets) {
24-
let available = spawn.sync(command, ['--version']).status === 0;
24+
let available =
25+
spawn.sync(command, ['--version'], { timeout: 10_000, killSignal: 'SIGKILL' }).status === 0;
2526
if (target === 'deno' && available) {
2627
// Deno resolves the user's npm configuration before evaluating even a
2728
// no-import script. Check that optional runtime without altering registries;

0 commit comments

Comments
 (0)