mirror of
https://github.com/openai/codex.git
synced 2026-04-29 02:41:12 +03:00
file drag and drop
This commit is contained in:
@@ -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"));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user