Skip to content

Commit 0cc3995

Browse files
committed
Download codeql/java-all in tests
An upcoming change in the CLI will require that the extensible predicates that are targeted by a data extension needs to be available in order for the `resolve extensions` command to succeed. There are a handful of tests that are failing with this new CLI. This change will update the tests so that the `codeql/java-all` pack is available in the tests and ensures they pass.
1 parent bb9299e commit 0cc3995

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

extensions/ql-vscode/test/vscode-tests/cli-integration/data-extensions-editor/modeled-method-fs.test.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,14 @@ describe("modeled-method-fs", () => {
5252
let workspacePath: string;
5353
let cli: CodeQLCliServer;
5454

55+
beforeAll(async () => {
56+
const extension = await getActivatedExtension();
57+
cli = extension.cliServer;
58+
59+
// The java-all pack needs to be available for codeql resolve extensions to succeed.
60+
await cli.packDownload(["codeql/java-all"]);
61+
});
62+
5563
beforeEach(async () => {
5664
// On windows, make sure to use a temp directory that isn't an alias and therefore won't be canonicalised by CodeQL.
5765
// See https://github.com/github/vscode-codeql/pull/2605 for more context.

0 commit comments

Comments
 (0)