I am looking for guidance in terms of what the best approach is for implementing unit tests with the latest SDKs. In general it seems there needs to be support for the following.
• a flag or something to enable a local mode during initialization (where it doesn't go out over the network)
• a way to explicitly override a specific feature flag with a unit test (used during the setting up initial state portion of the test)
• a way to clear all feature flag overrides (used in a hook before each test case to make sure we don't have state bleeding across tests)
I am particularly interested in the Javascript, Ruby, and Flutter SDKs.
Reading through the Flutter docs,
https://docs.growthbook.io/lib/flutter and
https://github.com/growthbook/growthbook-flutter, it isn't clear how we should be writing our unit tests when a feature flag is in play either. Again please provide any guidance.