test: assert memory watcher concrete paths

This commit is contained in:
Shakker
2026-05-08 10:53:07 +01:00
parent 0ae3c84790
commit 8159efadf7

View File

@@ -173,7 +173,7 @@ describe("memory watcher config", () => {
extraDir,
]),
);
expect(watchedPaths.every((watchPath) => !watchPath.includes("*"))).toBe(true);
expect(watchedPaths).not.toContainEqual(expect.stringContaining("*"));
expect(options.ignoreInitial).toBe(true);
expect(options.awaitWriteFinish).toEqual({ stabilityThreshold: 25, pollInterval: 100 });
@@ -225,7 +225,7 @@ describe("memory watcher config", () => {
expect(watchedPaths).toEqual(
expect.arrayContaining([path.join(workspaceDir, "MEMORY.md"), path.join(extraDir)]),
);
expect(watchedPaths.every((watchPath) => !watchPath.includes("*"))).toBe(true);
expect(watchedPaths).not.toContainEqual(expect.stringContaining("*"));
const ignored = options.ignored as WatchIgnoredFn | undefined;
expect(ignored).toBeTypeOf("function");