Skip to content

armgit / E2B

Public Imported from GitHub
0

Open-source, secure environment with real-world tools for enterprise-grade agents.

Fix test in js-sdk

Vasek Mlejnsky5c8b19045576
diff --git a/packages/js-sdk/test/runCode.test.mjs b/packages/js-sdk/test/runCode.test.mjs
index fca6e8dbf..2333c4447 100644
--- a/packages/js-sdk/test/runCode.test.mjs
+++ b/packages/js-sdk/test/runCode.test.mjs
@@ -15,7 +15,7 @@ import { expect, test } from 'vitest'
// })
test('run code using unsupported runtime', async () => {
- await expect(await runCode('Unsupported', 'print("hello")')).rejects.toThrow(
- "runtime isn't supported",
+ await expect(() => runCode('Unsupported', 'print("hello")')).rejects.toThrowError(
+ "isn't supported",
)
})
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index 3dc762542..27dfc7d42 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -171,7 +171,7 @@ importers:
'@e2b/sdk':
specifier: 0.3.2
- version: 0.3.2
+ version: link:../../packages/js-sdk
'@headlessui/react':
specifier: ^1.7.15
@@ -980,20 +980,6 @@ packages:
- utf-8-validate
dev: false
- resolution: {integrity: sha512-wwVVKlrSVzcRcCBc8RsS8k8R6d0GMRTWGKuH95PdeqZYZa4wzkocy37/X2bTkTADJA4x4OMIDAqhGNbmXMnDGg==}
- dependencies:
- bufferutil: 4.0.7
- cross-fetch: 3.1.8
- normalize-path: 3.0.0
- openapi-typescript-fetch: 1.1.3
- platform: 1.3.6
- rpc-websocket-client: 1.1.4([email protected])([email protected])
- utf-8-validate: 5.0.10
- transitivePeerDependencies:
- - encoding
- dev: false
-
/@emotion/[email protected]:
resolution: {integrity: sha512-u5WtneEAr5IDG2Wv65yhunPSMLIpuKsbuOktRojfrEiEvRyC85LgPMZI63cr7NUqT8ZIGdSVg8ZKGxIug4lXcA==}
requiresBuild: true