mirror of
https://github.com/openclaw/openclaw.git
synced 2026-03-24 16:32:29 +00:00
perf: trim vitest hot imports and refresh manifests
This commit is contained in:
18
test/scripts/test-update-memory-hotspots-utils.test.ts
Normal file
18
test/scripts/test-update-memory-hotspots-utils.test.ts
Normal file
@@ -0,0 +1,18 @@
|
||||
import { describe, expect, it } from "vitest";
|
||||
import { matchesHotspotSummaryLane } from "../../scripts/test-update-memory-hotspots-utils.mjs";
|
||||
|
||||
describe("test-update-memory-hotspots lane matching", () => {
|
||||
it("matches the exact target lane", () => {
|
||||
expect(matchesHotspotSummaryLane("unit-fast", "unit-fast")).toBe(true);
|
||||
});
|
||||
|
||||
it("matches configured lane prefixes", () => {
|
||||
expect(matchesHotspotSummaryLane("unit-chat-memory-isolated", "unit-fast", ["unit-"])).toBe(
|
||||
true,
|
||||
);
|
||||
});
|
||||
|
||||
it("rejects unrelated lanes", () => {
|
||||
expect(matchesHotspotSummaryLane("extensions", "unit-fast", ["unit-"])).toBe(false);
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user