2482fb7e62
dryRun no longer needed — tests use mock agents + mock fetch instead. Removes isDryRun from WorkflowFnOptions, dryRun from ExtractConfig, dryRunMeta from RoleDefinition, --dry-run from CLI, and all related plumbing in engine/worker/fork/extract. 小橘 <xiaoju@shazhou.work>
20 lines
626 B
TypeScript
20 lines
626 B
TypeScript
import { describe, expect, test } from "bun:test";
|
|
|
|
import { committerMetaSchema, committerRole } from "../src/committer.js";
|
|
|
|
describe("committerRole", () => {
|
|
test("committed sample validates against schema", () => {
|
|
const parsed = committerMetaSchema.safeParse({
|
|
status: "committed" as const,
|
|
branch: "feat/example",
|
|
commitSha: "abc1234",
|
|
});
|
|
expect(parsed.success).toBe(true);
|
|
});
|
|
|
|
test("exposes generic committer system prompt", () => {
|
|
expect(committerRole.systemPrompt).toContain("git committer");
|
|
expect(committerRole.systemPrompt).not.toContain("project is at");
|
|
});
|
|
});
|