https://www.growthbook.io/ logo
c

crooked-salesclerk-71686

02/27/2023, 9:22 AM
Hey Team, first of all thanks for this great tool :) I am wondering whether there are any best practices regarding the usage of feature flags in unit, integration and e2e tests. - For unit tests (Jest): I'd mock the library and set feature flags by using
growthbook.setForcedFeatures
. - Integration (Cypress): I'd mock all network requests. - E2E (Selenium): I could fake the growthbook instance to control the feature flags via an API or mock the proxy. Especially with E2E I am not too happy since it requires a lot of effort and I was wondering if someone found better solutions or could share experiences.
f

fresh-football-47124

02/28/2023, 4:14 AM
Hi Kai. I’m not sure I have a good solution for you- but if you have some ideas as to how we could make this easier, I’d love to hear
12 Views