Files
Merlin's CatGitHubCopilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>MerlinHCopilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
9fa9ac25a4 feat: add workflow eval framework (#32)
* feat: add workflow eval framework

Add workflow evaluation scenarios, rubrics, schemas, and runner scripts for installed Truthmark workflows.

Move research notes under docs/research and migrate tests from Vitest to node:test.

* Potential fix for pull request finding 'CodeQL / Replacement of a substring with itself'

Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>

---------

Co-authored-by: MerlinH <merlinh221@gmail.com>
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
2026-06-30 20:57:55 +10:00

27 lines
723 B
TypeScript

import { describe, it } from "node:test";
import { expect } from "expect";
import {
getContentPrompt,
listContentPrompts,
} from "../../src/generation/registry.js";
import { CONTENT_PROMPT_IDS } from "../../src/generation/types.js";
describe("generation prompt ids", () => {
it("exposes runtime prompt ids", () => {
expect(CONTENT_PROMPT_IDS).toEqual(["truth-doc-update"]);
});
});
describe("content prompt registry", () => {
it("lists registered prompts", () => {
expect(listContentPrompts().map((prompt) => prompt.id)).toEqual([
"truth-doc-update",
]);
});
it("returns a prompt by id", () => {
expect(getContentPrompt("truth-doc-update").title).toBe("Truth Doc Update");
});
});