test: preserve opencode semantic live artifacts

This commit is contained in:
777genius 2026-04-29 19:36:12 +03:00
parent dbec466c14
commit ad331b131f

View file

@ -39,7 +39,11 @@ liveDescribe('OpenCode semantic messaging live e2e', () => {
afterEach(async () => {
setClaudeBasePathOverride(null);
await fs.rm(tempDir, { recursive: true, force: true });
if (process.env.OPENCODE_E2E_KEEP_TEMP === '1') {
console.info(`[OpenCodeSemanticMessaging.live] preserved temp dir: ${tempDir}`);
} else {
await fs.rm(tempDir, { recursive: true, force: true });
}
});
it(