Prefer providing CodeQL via dependency injection

This commit is contained in:
Henry Mercer
2025-08-07 12:13:59 +01:00
parent c7884c6fd8
commit f8c2086872
42 changed files with 138 additions and 126 deletions

View File

@@ -263,7 +263,7 @@ export function mockCodeQLVersion(
version: string,
features?: { [name: string]: boolean },
) {
return codeql.setCodeQL({
return codeql.createStubCodeQL({
async getVersion() {
return makeVersionInfo(version, features);
},