Support determining Dotcom CLI version from feature flags

This commit is contained in:
Henry Mercer 2023-01-05 13:11:53 +00:00
parent 6ba0a36550
commit cdb90196f2
12 changed files with 307 additions and 7 deletions

3
lib/testing-utils.js generated
View file

@ -181,6 +181,9 @@ exports.mockCodeQLVersion = mockCodeQLVersion;
*/
function createFeatures(enabledFeatures) {
return {
getDefaultCliVersion: async () => {
throw new Error("not implemented");
},
getValue: async (feature) => {
return enabledFeatures.includes(feature);
},