mirror of
https://github.com/merlinhu1/truthmark.git
synced 2026-08-25 07:53:25 +02:00
* 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>
22 lines
709 B
TypeScript
22 lines
709 B
TypeScript
import fs from "node:fs/promises";
|
|
|
|
import { describe, it } from "node:test";
|
|
import { expect } from "expect";
|
|
|
|
import { TRUTHMARK_VERSION } from "../src/version.js";
|
|
|
|
describe("TRUTHMARK_VERSION", () => {
|
|
it("is read from package.json so generated workflow staleness markers track releases", async () => {
|
|
const packageJson = JSON.parse(
|
|
await fs.readFile(new URL("../package.json", import.meta.url), "utf8"),
|
|
) as { version: string };
|
|
const versionSource = await fs.readFile(
|
|
new URL("../src/version.ts", import.meta.url),
|
|
"utf8",
|
|
);
|
|
|
|
expect(TRUTHMARK_VERSION).toBe(packageJson.version);
|
|
expect(versionSource).not.toContain(`"${packageJson.version}"`);
|
|
});
|
|
});
|