Skip to content

The open source coding agent.

TypeScript

fix(test): replace structuredClone with spread for process.env (#14908)

Luke Parker32417774c4ba
diff --git a/packages/opencode/test/ide/ide.test.ts b/packages/opencode/test/ide/ide.test.ts
index 4d70140197f..e10700e80ff 100644
--- a/packages/opencode/test/ide/ide.test.ts
+++ b/packages/opencode/test/ide/ide.test.ts
@@ -2,7 +2,7 @@ import { describe, expect, test, afterEach } from "bun:test"
import { Ide } from "../../src/ide"
describe("ide", () => {
- const original = structuredClone(process.env)
+ const original = { ...process.env }
afterEach(() => {
Object.keys(process.env).forEach((key) => {