Skip to content

Commit 3790e92

Browse files
committed
test(qa): type runtime parity artifact mock
1 parent 069cf88 commit 3790e92

1 file changed

Lines changed: 13 additions & 7 deletions

File tree

‎extensions/qa-lab/src/suite-runtime-parity-runner.cleanup.test.ts‎

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -48,13 +48,19 @@ const mocks = vi.hoisted(() => ({
4848
getProcessRssBytes: () => null,
4949
stop: vi.fn(async () => {}),
5050
})),
51-
writeQaSuiteArtifacts: vi.fn(async () => ({
52-
evidence: { kind: "test" },
53-
evidencePath: "/qa-output/qa-evidence.json",
54-
report: "",
55-
reportPath: "/qa-output/qa-suite-report.md",
56-
summaryPath: "/qa-output/qa-suite-summary.json",
57-
})),
51+
writeQaSuiteArtifacts: vi.fn(
52+
async (_params: {
53+
channel?: string | null;
54+
channelDriver?: string | null;
55+
channelDriverSelection?: unknown;
56+
}) => ({
57+
evidence: { kind: "test" },
58+
evidencePath: "/qa-output/qa-evidence.json",
59+
report: "",
60+
reportPath: "/qa-output/qa-suite-report.md",
61+
summaryPath: "/qa-output/qa-suite-summary.json",
62+
}),
63+
),
5864
}));
5965

6066
vi.mock("openclaw/plugin-sdk/agent-harness", () => ({

0 commit comments

Comments
 (0)