Support determining Dotcom CLI version from feature flags
This commit is contained in:
parent
6ba0a36550
commit
cdb90196f2
12 changed files with 307 additions and 7 deletions
|
|
@ -201,6 +201,9 @@ export function mockCodeQLVersion(version) {
|
|||
*/
|
||||
export function createFeatures(enabledFeatures: Feature[]): FeatureEnablement {
|
||||
return {
|
||||
getDefaultCliVersion: async () => {
|
||||
throw new Error("not implemented");
|
||||
},
|
||||
getValue: async (feature) => {
|
||||
return enabledFeatures.includes(feature);
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue