mirror of
https://github.com/paperclipai/paperclip.git
synced 2026-10-27 02:44:50 +01:00
test: classify heartbeat run fixtures
Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
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",
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
@@ -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",
|
||||
|
||||
@@ -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,
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user