Skip to content
Source
Sign inSign up

fileContentRevision.test.ts

11 lines364 Bytes

1import { describe, expect, it } from "vite-plus/test";
2​
3import { projectFileCacheKey } from "./fileContentRevision";
4​
5describe("file cache identity", () => {
6 it("changes for same-length edits", () => {
7 expect(projectFileCacheKey("/repo", "file.json", "nodeVersion")).not.toBe(
8 projectFileCacheKey("/repo", "file.json", "nodeVeasdrs"),
9 );
10 });
11});