(env: Env)
| 32 | type Env = Record<string, string | undefined>; |
| 33 | |
| 34 | function make(env: Env) { |
| 35 | const resolver = new FlagResolver(env, DEFS); |
| 36 | // The fake ids are not part of the real FlagId union, so cast to FlagId when calling. |
| 37 | return (id: string) => resolver.enabled(id as FlagId); |
| 38 | } |
| 39 | |
| 40 | describe('FlagResolver', () => { |
| 41 | it('L3 default: returns the registry default when env is empty', () => { |