@@ -49,6 +49,9 @@ describeWithCodeQL()("Debugger", () => {
4949 const quickEvalQueryPath = getDataFolderFilePath (
5050 "debugger/QuickEvalQuery.ql" ,
5151 ) ;
52+ const quickEvalBigIntQueryPath = getDataFolderFilePath (
53+ "debugger/QuickEvalBigIntQuery.ql" ,
54+ ) ;
5255 const quickEvalLibPath = getDataFolderFilePath ( "debugger/QuickEvalLib.qll" ) ;
5356
5457 beforeEach ( async ( ) => {
@@ -146,11 +149,16 @@ describeWithCodeQL()("Debugger", () => {
146149
147150 it ( "should run a quick evaluation with a bigint-valued result column" , async ( ) => {
148151 await withDebugController ( appCommands , async ( controller ) => {
149- await selectForQuickEval ( quickEvalLibPath , 20 , 23 , 20 , 37 ) ;
152+ const semver = await cli . getVersion ( ) ;
153+ if ( semver . compare ( "2.18.4" ) < 0 ) {
154+ // Skip this test if the CLI version is too old to support BigInt
155+ return ;
156+ }
150157
151- await controller . startDebuggingSelection ( {
152- query : quickEvalQueryPath , // The query context. This query extends the abstract class.
153- } ) ;
158+ await selectForQuickEval ( quickEvalBigIntQueryPath , 4 , 23 , 4 , 37 ) ;
159+
160+ // Don't specify a query path, so we'll default to the active document ("QuickEvalBigIntQuery.ql")
161+ await controller . startDebuggingSelection ( { } ) ;
154162 await controller . expectLaunched ( ) ;
155163 const result = await controller . expectSucceeded ( ) ;
156164 expect ( result . started . quickEvalContext ) . toBeDefined ( ) ;
0 commit comments