File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed
packages/quickjs-emscripten/src Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -44,21 +44,28 @@ import {
44
44
newVariant ,
45
45
shouldInterruptAfterDeadline ,
46
46
Scope ,
47
+ setDebugMode ,
47
48
} from "."
48
49
49
50
const TEST_SLOW = ! process . env . TEST_FAST
50
51
const TEST_NG = TEST_SLOW && ! process . env . TEST_NO_NG
51
52
const TEST_DEBUG = TEST_SLOW && ! process . env . TEST_NO_DEBUG
52
53
const TEST_ASYNC = TEST_SLOW && ! process . env . TEST_NO_ASYNC
53
54
const TEST_RELEASE = ! process . env . TEST_NO_RELEASE
55
+ const DEBUG = Boolean ( process . env . DEBUG )
54
56
console . log ( "test sets:" , {
55
57
TEST_RELEASE ,
56
58
TEST_DEBUG ,
57
59
TEST_NG ,
58
60
TEST_ASYNC ,
59
61
TEST_SLOW ,
62
+ DEBUG ,
60
63
} )
61
64
65
+ if ( DEBUG ) {
66
+ setDebugMode ( true )
67
+ }
68
+
62
69
type GetTestContext = ( options ?: ContextOptions ) => Promise < QuickJSContext >
63
70
64
71
const baseIt = it
You can’t perform that action at this time.
0 commit comments