test: classify heartbeat run 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 c516a6c834
commit d809231411
4 files changed
+4

No files matched your search

@@ -83,6 +83,7 @@ function createRun(overrides: Partial<HeartbeatRun> = {}): HeartbeatRun {
createdAt: new Date("2026-04-20T11:58:00.000Z"),
updatedAt: new Date("2026-04-20T11:59:00.000Z"),
...overrides,
scopeKind: overrides.scopeKind ?? "company",
};
}
+1
View File
@@ -133,6 +133,7 @@ function makeRun(id: string, status: HeartbeatRun["status"], createdAt: string,
id,
companyId: "company-1",
agentId,
scopeKind: "company",
issueId: null,
responsibleUserId: null,
invocationSource: "assignment",
+1
View File
@@ -849,6 +849,7 @@ describe("FailedRunInboxRow", () => {
continuationAttempt: 0,
lastUsefulActionAt: null,
nextAction: null,
scopeKind: "company",
stdoutExcerpt: null,
stderrExcerpt: null,
contextSnapshot: null,
@@ -140,6 +140,7 @@ function makeHeartbeatRun(overrides: Partial<HeartbeatRun>): HeartbeatRun {
nextAction: null,
contextSnapshot: null,
...overrides,
scopeKind: overrides.scopeKind ?? "company",
createdAt,
updatedAt: overrides.updatedAt ?? createdAt,
};