Skip to content

🎥 Make videos programmatically with React

right

Jonny Burger6bc7422b1cc2
diff --git a/tests/ssr/render-media.test.ts b/tests/ssr/render-media.test.ts
index 47a0d3fe90..027e40949e 100644
--- a/tests/ssr/render-media.test.ts
+++ b/tests/ssr/render-media.test.ts
@@ -32,6 +32,7 @@ test("Render video with browser instance open", async () => {
puppeteerInstance,
});
await puppeteerInstance.close();
+ expect(existsSync(outPath)).toBe(true);
});
test("Render video with browser instance not open", async () => {
@@ -47,7 +48,7 @@ test("Render video with browser instance not open", async () => {
const tmpDir = os.tmpdir();
- const outPath = path.join(tmpDir, "hii.mp4");
+ const outPath = path.join(tmpDir, "subdir", "hii.mp4");
await renderMedia({
outputLocation: outPath,
@@ -57,7 +58,6 @@ test("Render video with browser instance not open", async () => {
composition: reactSvg,
frameRange: [0, 2],
});
- console.log({ outPath });
expect(existsSync(outPath)).toBe(true);
});