Files
PaperClipAI/tests/runner-e2e/non-execution-wake.test.ts
T
DottaandPaperclip 8fb291310d Exercise installed legacy skills and grade real continuation outputs
Initialize the operational skill for legacy continuation fixtures, verify task attachment bytes, allow Claude’s optional custom-answer field, and distinguish unstarted dependency-blocked wakes from failed provider executions.

Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-09-18 22:05:48 -05:00

10 lines
551 B
TypeScript

import { expect, it } from "vitest";
import { isBlockedUnstartedWake } from "./non-execution-wake.js";
it("recognizes only explicitly suppressed wakes that never started execution", () => {
const run = { status: "cancelled", errorCode: "issue_dependencies_blocked", startedAt: null };
expect(isBlockedUnstartedWake(run)).toBe(true);
for (const patch of [{ startedAt: "2026-09-18" }, { startedAt: undefined }, { errorCode: "user_cancelled" }, { status: "failed" }]) {
expect(isBlockedUnstartedWake({ ...run, ...patch })).toBe(false);
}
});