Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions packages/js-sdk/tests/api/info.test.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { expect } from 'vitest'

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

sandboxTest.skipIf(isDebug)('get sandbox info', async ({ sandbox }) => {
hostedSandboxTest('get sandbox info', async ({ sandbox }) => {
const info = await Sandbox.getInfo(sandbox.sandboxId)
expect(info).toBeDefined()
expect(info.sandboxId).toBe(sandbox.sandboxId)
Expand Down
6 changes: 3 additions & 3 deletions packages/js-sdk/tests/api/kill.test.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { expect } from 'vitest'

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

sandboxTest.skipIf(isDebug)(
hostedSandboxTest(
'kill existing sandbox',
async ({ sandbox, sandboxTestId }) => {
await Sandbox.kill(sandbox.sandboxId)
Expand All @@ -16,6 +16,6 @@ sandboxTest.skipIf(isDebug)(
}
)

sandboxTest.skipIf(isDebug)('kill non-existing sandbox', async () => {
hostedSandboxTest('kill non-existing sandbox', async () => {
await expect(Sandbox.kill('nonexistingsandbox')).resolves.toBe(false)
})
Loading
Loading