This commit is contained in:
Allan Guigou
2026-01-29 15:56:43 +00:00
parent 3c0a5f79fc
commit fea8440c1d
2 changed files with 2 additions and 8 deletions
+1 -4
View File
@@ -51,10 +51,7 @@ describe("FeatureFlags", () => {
it("returns all features when all is enabled", () => { it("returns all features when all is enabled", () => {
const flags = new FeatureFlags({all: true}); const flags = new FeatureFlags({all: true});
expect(flags.getEnabledFeatures()).toEqual([ expect(flags.getEnabledFeatures()).toEqual(["missingInputsQuickfix", "blockScalarChompingWarning"]);
"missingInputsQuickfix",
"blockScalarChompingWarning"
]);
}); });
}); });
}); });
+1 -4
View File
@@ -39,10 +39,7 @@ export type ExperimentalFeatureKey = Exclude<keyof ExperimentalFeatures, "all">;
* All known experimental feature keys. * All known experimental feature keys.
* This list must be kept in sync with the ExperimentalFeatures interface. * This list must be kept in sync with the ExperimentalFeatures interface.
*/ */
const allFeatureKeys: ExperimentalFeatureKey[] = [ const allFeatureKeys: ExperimentalFeatureKey[] = ["missingInputsQuickfix", "blockScalarChompingWarning"];
"missingInputsQuickfix",
"blockScalarChompingWarning"
];
export class FeatureFlags { export class FeatureFlags {
private readonly features: ExperimentalFeatures; private readonly features: ExperimentalFeatures;