(oref: string)
| 439 | const connConfigKeyAtomCache = new Map<string, Atom<any>>(); |
| 440 | const configBackgroundAtomCache = new Map<string, Atom<BackgroundConfigType>>(); |
| 441 | const getWaveObjectAtom = <T extends WaveObj>(oref: string): PrimitiveAtom<T> => { |
| 442 | if (!waveObjectValueAtomCache.has(oref)) { |
| 443 | const obj = (mergedOverrides.mockWaveObjs?.[oref] ?? null) as T; |
| 444 | waveObjectValueAtomCache.set(oref, atom(obj) as PrimitiveAtom<T>); |
| 445 | } |
| 446 | return waveObjectValueAtomCache.get(oref) as PrimitiveAtom<T>; |
| 447 | }; |
| 448 | const atoms = makeMockGlobalAtoms( |
| 449 | mergedOverrides.settings, |
| 450 | mergedOverrides.atoms, |
no test coverage detected