test: tighten slack qa artifact assertion

This commit is contained in:
Peter Steinberger
2026-05-09 04:40:41 +01:00
parent c2f6bb0e71
commit 07234384fc

View File

@@ -118,9 +118,7 @@ describe("Slack live QA runtime helpers", () => {
},
]);
expect(result.scenarios[0]?.details).toContain("Missing OPENCLAW_QA_CONVEX_SITE_URL");
await expect(fs.stat(result.reportPath)).resolves.toMatchObject({
isFile: expect.any(Function),
});
await expect(fs.stat(result.reportPath).then((stats) => stats.isFile())).resolves.toBe(true);
const summary = JSON.parse(await fs.readFile(result.summaryPath, "utf8")) as {
channelId: string;
credentials: { kind: string; role?: string; source: string };