mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-04 20:00:22 +00:00
test: stabilize bun cache invalidation fixtures
This commit is contained in:
committed by
Peter Steinberger
parent
175c770171
commit
21a1db78b3
@@ -358,7 +358,7 @@ describe("scanDirectoryWithSummary", () => {
|
||||
expect(second.critical).toBe(first.critical);
|
||||
expect(readSpy).toHaveBeenCalledTimes(1);
|
||||
|
||||
await fs.writeFile(filePath, `const x = eval("2+2");`, "utf-8");
|
||||
await fs.writeFile(filePath, `const x = eval("2+2");\n// cache bust`, "utf-8");
|
||||
const third = await scanDirectoryWithSummary(root);
|
||||
|
||||
expect(third.critical).toBeGreaterThan(0);
|
||||
|
||||
Reference in New Issue
Block a user