test(aws-lambda): the stored probe holds the ffprobe JSON and the final frame

This commit is contained in:
Miguel Angel Simon Sierra
2026-10-24 04:59:45 -04:00
parent 8f29377b63
commit d62c70a374
@@ -294,7 +294,9 @@ describe.skipIf(!HAS_FFMPEG)("deploySite probe facts", { timeout: 60_000 }, () =
s3.bodies.get(`test-bucket/sites/${site.siteId}/files.json`)?.toString() ?? "",
).find((file) => file.path === "assets/take.mp4");
const facts = probeFactsUri("test-bucket", take?.sha256 ?? "").replace("s3://", "");
expect(JSON.parse(s3.bodies.get(facts)?.toString() ?? "{}").streams[0].codec_type).toBe(
const stored = JSON.parse(s3.bodies.get(facts)?.toString() ?? "{}");
expect(stored.ffprobe.streams[0].codec_type).toBe("video");
expect(stored.finalFrame.seconds).toBeGreaterThan(1.5);
"video",
);
expect(sitePaths(s3, site.siteId)).toEqual([