diff --git a/test/relink.test.ts b/test/relink.test.ts index 7692a90e..e5cd5206 100644 --- a/test/relink.test.ts +++ b/test/relink.test.ts @@ -7,8 +7,12 @@ import * as os from 'os'; // Every test in this file shells out to gstack-config + gstack-relink (bash scripts // invoking subprocess work). Under parallel bun test load, subprocess spawn contends // with other suites and each test can drift ~200ms past the 5s default. Bump to 15s. -const test = ((name: any, fn: any, timeout?: number) => - _bunTest(name, fn, timeout ?? 15_000)) as typeof _bunTest; +// Object.assign preserves test.only / test.skip / test.each / test.todo sub-APIs. +const test = Object.assign( + ((name: any, fn: any, timeout?: number) => + _bunTest(name, fn, timeout ?? 15_000)) as typeof _bunTest, + _bunTest, +); const ROOT = path.resolve(import.meta.dir, '..'); const BIN = path.join(ROOT, 'bin');