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>
16 lines
542 B
TypeScript
16 lines
542 B
TypeScript
import { describe, expect, test } from "bun:test";
|
|
|
|
import { reviewerMetaSchema, reviewerRole } from "../src/reviewer.js";
|
|
|
|
describe("reviewerRole", () => {
|
|
test("approved sample validates against schema", () => {
|
|
const parsed = reviewerMetaSchema.safeParse({ status: "approved" as const });
|
|
expect(parsed.success).toBe(true);
|
|
});
|
|
|
|
test("system prompt is generic (no cwd)", () => {
|
|
expect(reviewerRole.systemPrompt).toContain("code reviewer");
|
|
expect(reviewerRole.systemPrompt).not.toContain("project is at");
|
|
});
|
|
});
|