Skip to content

🎥 Make videos programmatically with React

Update rendering.test.ts

Jonny Burger2641d1571399
diff --git a/tests/rendering.test.ts b/tests/rendering.test.ts
index 8231be2c0e..5ba72d1a71 100644
--- a/tests/rendering.test.ts
+++ b/tests/rendering.test.ts
@@ -299,7 +299,7 @@ test("Dynamic duration should work", async () => {
}
);
- expect(task.exitCode).toBe(process.platform === "win32");
+ expect(task.exitCode).toBe(Number(process.platform === "win32"));
// FIXME: --props don't work well on windows, this is an edge case for example
// In this case we should warn the user about it that they should pass a file path instead
expect(fs.existsSync(outputPath)).toBe(process.platform !== "win32");