(moduleExports: object, exportName: string)
| 211 | } |
| 212 | |
| 213 | function getModuleExport<T>(moduleExports: object, exportName: string): T | undefined { |
| 214 | try { |
| 215 | return (moduleExports as Record<string, T>)[exportName]; |
| 216 | } catch { |
| 217 | return undefined; |
| 218 | } |
| 219 | } |
| 220 | |
| 221 | vi.doMock("@/lib/api-client/v1/actions/providers", async () => { |
| 222 | const [providers, modelPrices] = await Promise.all([ |