mirror of
https://github.com/merlinhu1/truthmark.git
synced 2026-08-25 07:53:25 +02:00
16 lines
488 B
TypeScript
16 lines
488 B
TypeScript
import fs from "node:fs/promises";
|
|
|
|
import { describe, expect, it } from "vitest";
|
|
|
|
import { TRUTHMARK_VERSION } from "../src/version.js";
|
|
|
|
describe("TRUTHMARK_VERSION", () => {
|
|
it("matches 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 };
|
|
|
|
expect(TRUTHMARK_VERSION).toBe(packageJson.version);
|
|
});
|
|
});
|