import { describe, expect, it } from "vite-plus/test"; import { fileContentRevision, projectFileCacheKey } from "./fileContentRevision"; describe("fileContentRevision", () => { it("changes for same-length edits", () => { expect(fileContentRevision("nodeVersion")).not.toBe(fileContentRevision("nodeVeasdrs")); }); it("keeps identical contents stable", () => { expect(projectFileCacheKey("/repo", "file.json", "contents")).toBe( projectFileCacheKey("/repo", "file.json", "contents"), ); }); });