test: clarify memory wiki assertions

This commit is contained in:
Peter Steinberger
2026-05-08 12:03:52 +01:00
parent d7853ed5b3
commit feccd70b9d
3 changed files with 10 additions and 11 deletions

View File

@@ -3628,13 +3628,11 @@ describe("active-memory plugin", () => {
),
);
expect(
vi
.mocked(api.logger.info)
.mock.calls.some((call: unknown[]) =>
String(call[0]).includes(`transcript=${expectedDir}${path.sep}`),
),
).toBe(true);
expect(rmSpy.mock.calls.some(([target]) => String(target).startsWith(expectedDir))).toBe(false);
vi.mocked(api.logger.info).mock.calls.map((call: unknown[]) => String(call[0])),
).toContainEqual(expect.stringContaining(`transcript=${expectedDir}${path.sep}`));
expect(rmSpy.mock.calls.filter(([target]) => String(target).startsWith(expectedDir))).toEqual(
[],
);
});
it("falls back to the default transcript directory when transcriptDir is unsafe", async () => {