Fix env-sensitive worktree and runtime config tests

Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
Dotta
2026-03-11 16:38:31 -05:00
parent e76adf6ed1
commit f7cc292742
3 changed files with 27 additions and 3 deletions

View File

@@ -46,6 +46,7 @@ describe("resolveDatabaseTarget", () => {
const projectDir = path.join(tempDir, "repo");
fs.mkdirSync(projectDir, { recursive: true });
process.chdir(projectDir);
delete process.env.PAPERCLIP_CONFIG;
writeJson(path.join(projectDir, ".paperclip", "config.json"), {
database: { mode: "embedded-postgres", embeddedPostgresPort: 54329 },
});