fix: add timeout to CI-slow tests + check stderr for help output
CI / check (pull_request) Failing after 1m55s

This commit is contained in:
2026-06-04 11:18:49 +00:00
parent 63454a4cfd
commit 883bd79bcb
3 changed files with 14 additions and 12 deletions
@@ -24,15 +24,17 @@ function runCli(args: string[]): { stdout: string; stderr: string; exitCode: num
}
describe("thread exec --count CLI parsing", () => {
test("--help shows -c/--count option", () => {
test("--help shows -c/--count option", { timeout: 30_000 }, () => {
const result = runCli(["thread", "exec", "--help"]);
expect(result.stdout).toContain("--count");
expect(result.stdout).toContain("-c");
const combined = result.stdout + result.stderr;
expect(combined).toContain("--count");
expect(combined).toContain("-c");
});
test("description says 'one or more steps'", () => {
test("description says 'one or more steps'", { timeout: 30_000 }, () => {
const result = runCli(["thread", "exec", "--help"]);
expect(result.stdout).toContain("one or more steps");
const combined = result.stdout + result.stderr;
expect(combined).toContain("one or more steps");
});
});