()
| 90 | |
| 91 | let userImages: Array<Awaited<ReturnType<typeof img>>> | undefined |
| 92 | export async function getUserImages() { |
| 93 | if (userImages) return userImages |
| 94 | |
| 95 | userImages = await Promise.all( |
| 96 | Array.from({ length: 10 }, (_, index) => |
| 97 | img({ filepath: `./tests/fixtures/images/user/${index}.jpg` }), |
| 98 | ), |
| 99 | ) |
| 100 | |
| 101 | return userImages |
| 102 | } |
| 103 | |
| 104 | export async function img({ |
| 105 | altText, |
no test coverage detected