fix(engine): widen mutableTask.column type in executor test

The `as const` annotation narrowed column to "in-progress" only, breaking
tsc build when the moveTask mock assigned "todo".

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
gsxdsm
2026-04-29 23:19:10 -07:00
parent 2e949895e2
commit 2c464c2949

View File

@@ -11162,11 +11162,25 @@ describe("TaskExecutor watchdogs", () => {
it("preserves the original executionStartedAt during a workflow rerun bounce", async () => {
const store = createMockStore();
const originalExecutionStartedAt = "2026-04-30T05:06:43.781Z";
const mutableTask = {
const mutableTask: {
id: string;
title: string;
description: string;
column: "in-progress" | "todo";
paused: boolean;
worktree: string;
executionStartedAt: string;
dependencies: string[];
steps: { name: string; status: string }[];
currentStep: number;
log: unknown[];
createdAt: string;
updatedAt: string;
} = {
id: "FN-WD-4",
title: "Workflow rerun timing",
description: "desc",
column: "in-progress" as const,
column: "in-progress",
paused: false,
worktree: "/tmp/fn-wd-4",
executionStartedAt: originalExecutionStartedAt,