Skip to content

Commit bfa7ea1

Browse files
Fix external api usage query tests by mocking all CodeQL calls
1 parent b501a04 commit bfa7ea1

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

extensions/ql-vscode/test/vscode-tests/no-workspace/model-editor/external-api-usage-query.test.ts

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,17 @@ describe("runModelEditorQueries", () => {
105105
"/a/b/c/qlpack2.yml",
106106
]),
107107
bqrsInfo: jest.fn().mockResolvedValue({
108-
"result-sets": [],
108+
"result-sets": [
109+
{
110+
name: "results",
111+
rows: 45,
112+
columns: [],
113+
},
114+
],
115+
}),
116+
bqrsDecode: jest.fn().mockResolvedValue({
117+
tuples: [],
118+
columns: [],
109119
}),
110120
}),
111121
queryRunner: mockedObject<QueryRunner>({

0 commit comments

Comments
 (0)