test: classify live run route fixtures

Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
DottaandPaperclip committed 2026-08-01 22:54:01 +00:00
1 parent 2275b4301d
commit 126f968b68
1 file changed
+14 -5
@@ -219,6 +219,8 @@ describe("agent live run routes", () => {
mockHeartbeatService.getRunLogAccess.mockResolvedValue({
id: "run-1",
companyId: "company-1",
scopeKind: "company",
issueId: null,
logStore: "local_file",
logRef: "logs/run-1.ndjson",
});
@@ -352,6 +354,8 @@ describe("agent live run routes", () => {
expect(mockHeartbeatService.readLog).toHaveBeenCalledWith({
id: "run-1",
companyId: "company-1",
scopeKind: "company",
issueId: null,
logStore: "local_file",
logRef: "logs/run-1.ndjson",
}, {
@@ -391,7 +395,8 @@ describe("agent live run routes", () => {
lastOutputStream: null,
lastOutputBytes: 0,
processStartedAt: null,
issueId: "issue-1",
scopeKind: "company",
issueId: null,
}));
const { db, limit } = createLiveRunsDbStub(rows);
@@ -430,7 +435,8 @@ describe("agent live run routes", () => {
lastOutputStream: null,
lastOutputBytes: 0,
processStartedAt: null,
issueId: "issue-1",
scopeKind: "company",
issueId: null,
}));
const { db, limit } = createLiveRunsDbStub(rows);
@@ -468,7 +474,8 @@ describe("agent live run routes", () => {
lastOutputStream: null,
lastOutputBytes: 0,
processStartedAt: null,
issueId: "issue-1",
scopeKind: "company",
issueId: null,
}));
const selectCalls: Array<ReturnType<typeof vi.fn>> = [];
@@ -525,7 +532,8 @@ describe("agent live run routes", () => {
lastOutputStream: null,
lastOutputBytes: 0,
processStartedAt: null,
issueId: "issue-1",
scopeKind: "company",
issueId: null,
}));
const recentRows = Array.from({ length: 4 }, (_, index) => ({
id: `run-recent-${index}`,
@@ -550,7 +558,8 @@ describe("agent live run routes", () => {
lastOutputStream: null,
lastOutputBytes: 0,
processStartedAt: null,
issueId: "issue-1",
scopeKind: "company",
issueId: null,
}));
let selectCallCount = 0;