Skip to content

A self-organizing Obsidian vault that gives AI coding agents persistent memory.

test: clean the empty-vault test's folder with rmTemp (#359)

Brenno Ferrari522a4cf4e4ca
diff --git a/.claude/scripts/tests/session-start.integration.test.ts b/.claude/scripts/tests/session-start.integration.test.ts
index 1c0f8e3..b07a0a7 100644
--- a/.claude/scripts/tests/session-start.integration.test.ts
+++ b/.claude/scripts/tests/session-start.integration.test.ts
@@ -128,7 +128,8 @@ describe("session-start — the hook path prints one JSON envelope (#340)", () =
assert.equal(code, 0);
assert.match(lastLine(stdout), /^_context injected: /);
} finally {
- rmSync(dir, { recursive: true, force: true });
+ // rmTemp: a Windows handle can outlive the hook by a moment (#235).
+ rmTemp(dir);
}
});