Skip to content

An open-source, faster Devin alternative

TypeScript

fix: avoid private field intersection in sdk test (#424)

Mohamed Habib0eb0b4a454ce
diff --git a/sdks/typescript/src/sandbox.test.ts b/sdks/typescript/src/sandbox.test.ts
index 21f0c8a0..5eaba11f 100644
--- a/sdks/typescript/src/sandbox.test.ts
+++ b/sdks/typescript/src/sandbox.test.ts
@@ -20,14 +20,11 @@ describe("Sandbox checkpoint requests", () => {
}), { status: 201, headers: { "content-type": "application/json" } }),
);
- const sandbox = Object.create(Sandbox.prototype) as Sandbox & {
- apiUrl: string;
- apiKey: string;
- sandboxId: string;
- };
- sandbox.apiUrl = "https://api.example.test/api";
- sandbox.apiKey = "osb_test";
- sandbox.sandboxId = "sb_1";
+ const sandbox = Object.create(Sandbox.prototype) as Sandbox;
+ const sandboxState = sandbox as unknown as Record<string, unknown>;
+ sandboxState.apiUrl = "https://api.example.test/api";
+ sandboxState.apiKey = "osb_test";
+ sandboxState.sandboxId = "sb_1";
await sandbox.createCheckpoint("autosave", {
retentionPolicy: { mode: "delete_oldest", maxCount: 3 },