MCPcopy
hub / github.com/epicweb-dev/epic-stack / getUserImages

Function getUserImages

tests/db-utils.ts:92–102  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

90
91let userImages: Array<Awaited<ReturnType<typeof img>>> | undefined
92export 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
104export async function img({
105 altText,

Callers 2

$username.test.tsxFile · 0.90
seedFunction · 0.90

Calls 1

imgFunction · 0.85

Tested by

no test coverage detected