MCPcopy
hub / github.com/jimp-dev/jimp / getTestImagePath

Function getTestImagePath

packages/test-utils/src/index.ts:209–229  ·  view source on GitHub ↗
(
  name:
    | "cops.jpg"
    | "dice.png"
    | "flower.gif"
    | "animated.gif"
    | "mask.png"
    | "panoramic.jpg"
    | "rgb.tiff"
    | "windows95.png"
    | "windows95.bmp"
    | "fillbytes.jpg"
    | "hands.jpg"
    | "hands_mx200_rp255.jpg",
)

Source from the content-addressed store, hash-verified

207});
208
209export function getTestImagePath(
210 name:
211 | "cops.jpg"
212 | "dice.png"
213 | "flower.gif"
214 | "animated.gif"
215 | "mask.png"
216 | "panoramic.jpg"
217 | "rgb.tiff"
218 | "windows95.png"
219 | "windows95.bmp"
220 | "fillbytes.jpg"
221 | "hands.jpg"
222 | "hands_mx200_rp255.jpg",
223) {
224 if (typeof window !== "undefined") {
225 return `/${name}`;
226 }
227
228 return path.join(__dirname, "../../images", name);
229}

Callers 12

jimp.test.tsFile · 0.90
index.node.test.tsFile · 0.90
index.test.tsFile · 0.90
index.test.tsFile · 0.90
index.test.tsFile · 0.90
index.test.tsFile · 0.90
index.node.test.tsFile · 0.90
index.test.tsFile · 0.90
index.test.tsFile · 0.90
index.node.test.tsFile · 0.90
index.test.tsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…