growthbook / growthbook/examples

Add example unit tests for the JavaScript SDK

Open
#29 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
23
Forks
14
PR merge metrics
No merged PRs in 30d

Description

Add example unit tests for how to test with the JavaScript SDK.

Possible ideas:

- have the user implement a separate feature repository to fetch features (e.g. `featureRepository.getFeatures()` and set those in the SDK with `setFeatures()` or passed into the Context constructor. this allows the user to create a mock of the feature repository's `getFeatures()` method.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.