worried-planet-2191
04/12/2022, 1:08 PMfuture-teacher-7046
forceVariation method doesn't work for experiments run through feature flags. As soon as you force a variation, you are no longer "included" in the experiment and the rule will be skipped.
There is the setForcedFeatures method instead which lets you directly override the value of a feature.
growthbook.setForcedFeatures(new Map([
['webtest-feature', false]
]))future-teacher-7046
forceVariation does work for features, which should be more intuitivelemon-stone-42630
04/12/2022, 2:06 PM