Make `getFeatureFlags` resolve to `doc` via the AppConfig path (also exercises parseConfig).
(doc: unknown)
| 40 | |
| 41 | /** Make `getFeatureFlags` resolve to `doc` via the AppConfig path (also exercises parseConfig). */ |
| 42 | function withAppConfig(doc: unknown) { |
| 43 | flagRef.isAppConfigEnabled = true |
| 44 | mockFetch.mockImplementation((_ids, parse) => Promise.resolve(parse(doc))) |
| 45 | } |
| 46 | |
| 47 | /** |
| 48 | * `isFeatureEnabled` only accepts registered `FeatureFlagName`s. The registry is |
no test coverage detected