File tree Expand file tree Collapse file tree
packages/js-sdk/tests/sandbox Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11import { assert , test } from 'vitest'
22
3- import sandbox , { Sandbox } from '../../src'
3+ import { Sandbox } from '../../src'
44import { isDebug , sandboxTest , template } from '../setup.js'
55
66test ( 'connect' , async ( ) => {
@@ -20,12 +20,15 @@ test('connect', async () => {
2020 }
2121} )
2222
23- sandboxTest ( 'connect to non-running sandbox' , async ( { sandbox } ) => {
24- const isRunning = await sandbox . isRunning ( )
25- assert . isTrue ( isRunning )
26- await sandbox . kill ( )
23+ sandboxTest . skipIf ( isDebug ) (
24+ 'connect to non-running sandbox' ,
25+ async ( { sandbox } ) => {
26+ const isRunning = await sandbox . isRunning ( )
27+ assert . isTrue ( isRunning )
28+ await sandbox . kill ( )
2729
28- const sbxConnection = await Sandbox . connect ( sandbox . sandboxId )
29- const isRunning2 = await sbxConnection . isRunning ( )
30- assert . isFalse ( isRunning2 )
31- } )
30+ const sbxConnection = await Sandbox . connect ( sandbox . sandboxId )
31+ const isRunning2 = await sbxConnection . isRunning ( )
32+ assert . isFalse ( isRunning2 )
33+ }
34+ )
You can’t perform that action at this time.
0 commit comments