test(opencode): restore missing PATH cleanly (#1243)
Co-authored-by: Isaac Sanchez <isanchez-hawkins@arize.com>
This commit is contained in:
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;
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user