Skip to content

Soul-driven AI agent with permission-hardened tools, token budgets, and multi-channel access. Runs 24/7 from CLI, Telegram or More.

test: the tidy test's home folder on Windows too (USERPROFILE)

Salman Qureshic44e3bea3783
diff --git a/src/web/api/artifacts-tidy.test.ts b/src/web/api/artifacts-tidy.test.ts
index 4946e480..be303950 100644
--- a/src/web/api/artifacts-tidy.test.ts
+++ b/src/web/api/artifacts-tidy.test.ts
@@ -9,6 +9,7 @@ const home = await vi.hoisted(async () => {
const dir = fs.mkdtempSync(path.join(os.tmpdir(), 'mercury-tidy-'));
process.env.MERCURY_HOME = path.join(dir, '.mercury');
process.env.HOME = dir;
+ process.env.USERPROFILE = dir; // os.homedir() on Windows
return dir;
});