mirror of
https://github.com/chriswritescode-dev/opencode-manager.git
synced 2026-12-06 12:54:20 +01:00
test(backend): isolate sandbox env and bound OpenCode stop in binary-backed tests
This commit is contained in:
1 parent
a7b961fe30
commit
d102cd59a9
2 files changed
+10
-2
No files matched your search
@@ -1,5 +1,9 @@
|
||||
import { beforeAll, afterAll } from 'vitest'
|
||||
|
||||
for (const key of Object.keys(process.env)) {
|
||||
if (key !== 'MSB_PATH' && /^(SANDBOX|MSB)_/.test(key)) delete process.env[key]
|
||||
}
|
||||
|
||||
const originalEnv: Record<string, string | undefined> = {}
|
||||
|
||||
beforeAll(() => {
|
||||
|
||||
Reference in new issue
Block a user