Skip to content

Commit 2138f85

Browse files
Skip test when CLI version is not high enough
1 parent d1ba99f commit 2138f85

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

extensions/ql-vscode/test/vscode-tests/cli-integration/variant-analysis/variant-analysis-manager.test.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -344,6 +344,13 @@ describe("Variant Analysis Manager", () => {
344344
});
345345

346346
it("should run multiple queries that are part of the same pack", async () => {
347+
if (!(await cli.cliConstraints.supportsPackCreateWithMultipleQueries())) {
348+
console.log(
349+
`Skipping test because MRVA with multiple queries is only suppported in CLI version ${CliVersionConstraint.CLI_VERSION_WITH_MULTI_QUERY_PACK_CREATE} or later.`,
350+
);
351+
return;
352+
}
353+
347354
await doVariantAnalysisTest({
348355
queryPaths: [
349356
"data-qlpack-multiple-queries/query1.ql",

0 commit comments

Comments
 (0)