test(opencode): deflake file and tool timing (#17859)

This commit is contained in:
Luke Parker
2026-03-17 10:49:04 +10:00
committed by GitHub
parent a64f604d54
commit cb69501098
6 changed files with 74 additions and 55 deletions

View File

@@ -44,6 +44,7 @@ process.env["OPENCODE_TEST_HOME"] = testHome
// Set test managed config directory to isolate tests from system managed settings
const testManagedConfigDir = path.join(dir, "managed")
process.env["OPENCODE_TEST_MANAGED_CONFIG_DIR"] = testManagedConfigDir
process.env["OPENCODE_DISABLE_DEFAULT_PLUGINS"] = "true"
// Write the cache version file to prevent global/index.ts from clearing the cache
const cacheDir = path.join(dir, "cache", "opencode")