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

Function serialize

packages/test-utils/src/index.ts:196–199  ·  view source on GitHub ↗
(val)

Source from the content-addressed store, hash-verified

194
195expect.addSnapshotSerializer({
196 serialize(val) {
197 const bitmap = "bitmap" in val ? val.bitmap : val;
198 return `Visualization:\n\n${testImgToStr(bitmap)}\n\nData:\n\n${testImageReadableMatrix(bitmap)}`;
199 },
200 test(val) {
201 if ("bitmap" in val) {
202 return true;

Callers

nothing calls this directly

Calls 2

testImgToStrFunction · 0.85
testImageReadableMatrixFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…