file drag and drop

This commit is contained in:
Eason Goodale
2025-04-26 12:53:47 -07:00
parent 28410d62af
commit 1a0f4a5e93
6 changed files with 273 additions and 37 deletions

View File

@@ -8,8 +8,13 @@ let projectDir: string;
let configPath: string;
let instructionsPath: string;
# Use OS tmpdir unless blocked; fallback to cwd.
beforeEach(() => {
projectDir = mkdtempSync(join(tmpdir(), "codex-proj-"));
try {
projectDir = mkdtempSync(join(tmpdir(), "codex-proj-"));
} catch {
projectDir = mkdtempSync(join(process.cwd(), "codex-proj-"));
}
// Create fake .git dir to mark project root
mkdirSync(join(projectDir, ".git"));