growthbook-testing
Installation
SKILL.md
growthbook-testing
Overview
Per
docs.growthbook.io/lib/node,
the GrowthBook Node SDK's GrowthBookClient supports an
initSync({ payload }) pattern that fully bypasses the network - pass the feature definitions directly.
createScopedInstance lets each test (or request) bind its own
user context cleanly.
When to use
- Tests for code using GrowthBook flags or experiments.
- Inline-experiment tests (server-side experiment definitions).
- Tracking-callback assertions to verify exposure events fire.