test: make media symlink fixture idempotent

This commit is contained in:
Ayaan Zaidi
2026-03-28 13:30:11 +05:30
parent 912bd1f5cc
commit 0feeea0994

View File

@@ -194,6 +194,7 @@ describe("media store", () => {
const target = path.join(home, "sensitive.txt");
const source = path.join(home, "source.txt");
await fs.writeFile(target, "sensitive");
await fs.rm(source, { force: true });
await fs.symlink(target, source);
return source;
}