Skip to content

armgit / E2B

Public Imported from GitHub
0

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

323 B
Raw Blame
import { expect } from 'vitest'

import { Sandbox } from '../src'
import { isDebug, sandboxTest } from './setup'

sandboxTest.skipIf(isDebug)('reconnect', async ({ sandbox }) => {
  sandbox = await Sandbox.connect(sandbox.sandboxId)

  const result = await sandbox.runCode('x =1; x')

  expect(result.text).toEqual('1')
})