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
g
gray-kitchen-30331
03/12/2024, 11:24 AM
@crooked-salesclerk-71686 Hi! Can you share your experience about GrowthBook integration with Cypress? Did you succeed to do that? Did you use an encrypted config for GrowthBook?