test(opencode): restore missing PATH cleanly (#1243)

Co-authored-by: Isaac Sanchez <isanchez-hawkins@arize.com>
This commit is contained in:
Isaac Sanchez-Hawkins
2026-05-13 10:35:32 +03:00
committed by GitHub
co-authored by Isaac Sanchez
parent d66e077b99
commit 1e1a7e02b7
@@ -7,6 +7,11 @@ import { createServerUtilsRuntime } from './server-utils-runtime.js';
const originalPath = process.env.PATH;
afterEach(() => {
if (originalPath === undefined) {
delete process.env.PATH;
return;
}
process.env.PATH = originalPath;
});