Skip to content

🎥 Make videos programmatically with React

Update frame-accuracy.test.ts

Jonny Burger1e30f9e29eec
diff --git a/packages/it-tests/src/rendering/frame-accuracy.test.ts b/packages/it-tests/src/rendering/frame-accuracy.test.ts
index 0cebb2eb89..ac7f73068e 100644
--- a/packages/it-tests/src/rendering/frame-accuracy.test.ts
+++ b/packages/it-tests/src/rendering/frame-accuracy.test.ts
@@ -75,7 +75,7 @@ const getMissedFramesforCodec = async (
colorDistance.blue,
colorDistance.green
);
- const threshold = 40;
+ const threshold = 30;
if (highestDistance > threshold) {
console.log(colorDistance, { threshold, frame, filename });
missedFrames++;
@@ -86,46 +86,22 @@ const getMissedFramesforCodec = async (
return missedFrames;
};
-test(
- "should render correct frames from embedded videos - WebM onthread",
- async () => {
- const missedFrames = await getMissedFramesforCodec("webm", false);
- expect(missedFrames).toBeLessThanOrEqual(1);
- },
- {
- retry: 2,
- }
-);
+test("should render correct frames from embedded videos - WebM onthread", async () => {
+ const missedFrames = await getMissedFramesforCodec("webm", false);
+ expect(missedFrames).toBeLessThanOrEqual(0);
+});
-test(
- "should render correct frames from embedded videos - WebM offthread",
- async () => {
- const missedFrames = await getMissedFramesforCodec("webm", true);
- expect(missedFrames).toBe(0);
- },
- {
- retry: 2,
- }
-);
+test("should render correct frames from embedded videos - WebM offthread", async () => {
+ const missedFrames = await getMissedFramesforCodec("webm", true);
+ expect(missedFrames).toBe(0);
+});
-test(
- "should render correct frames from embedded videos - MP4 onthread",
- async () => {
- const missedFrames = await getMissedFramesforCodec("mp4", false);
- expect(missedFrames).toBeLessThanOrEqual(1);
- },
- {
- retry: 2,
- }
-);
+test("should render correct frames from embedded videos - MP4 onthread", async () => {
+ const missedFrames = await getMissedFramesforCodec("mp4", false);
+ expect(missedFrames).toBeLessThanOrEqual(0);
+});
-test(
- "should render correct frames from embedded videos - MP4 offthread",
- async () => {
- const missedFrames = await getMissedFramesforCodec("mp4", true);
- expect(missedFrames).toBe(0);
- },
- {
- retry: 2,
- }
-);
+test("should render correct frames from embedded videos - MP4 offthread", async () => {
+ const missedFrames = await getMissedFramesforCodec("mp4", true);
+ expect(missedFrames).toBe(0);
+});