Skip to content

🎥 Make videos programmatically with React

fix deprecation and test coverage

Jonny Burger7443bc922b4d
diff --git a/TESTING.md b/TESTING.md
index 34ac14aa3e..cc221f7731 100644
--- a/TESTING.md
+++ b/TESTING.md
@@ -3,10 +3,10 @@ For general information concerning contribution, please consult [CONTRIBUTION.md
### Core Coverage
-![statements](https://img.shields.io/badge/Coverage_statements-79.29%25-yellow.svg)
-![branches](https://img.shields.io/badge/Coverage_branches-74.22%25-yellow.svg)
-![functions](https://img.shields.io/badge/Coverage_functions-64.52%25-red.svg)
-![lines](https://img.shields.io/badge/Coverage_lines-78.19%25-yellow.svg)
+![statements](https://img.shields.io/badge/Coverage_statements-79.22%25-yellow.svg)
+![branches](https://img.shields.io/badge/Coverage_branches-74.07%25-yellow.svg)
+![functions](https://img.shields.io/badge/Coverage_functions-63.9%25-red.svg)
+![lines](https://img.shields.io/badge/Coverage_lines-78.1%25-yellow.svg)
### Running tests
diff --git a/tests/rendering.test.ts b/tests/rendering.test.ts
index 37eff93e6a..a2b8fd8180 100644
--- a/tests/rendering.test.ts
+++ b/tests/rendering.test.ts
@@ -161,7 +161,7 @@ test("Should render a still image if single frame specified", async () => {
const data = info.stderr;
expect(data).toContain("Video: png");
expect(data).toContain("png_pipe");
- fs.rmdirSync(outDir, {
+ await (fs.promises.rm ?? fs.promises.rmdir)(outDir, {
recursive: true,
});
});
@@ -346,7 +346,7 @@ test("Should be able to render if remotion.config.ts is not provided", async ()
reject: false,
}
);
-
+
expect(task.exitCode).toBe(0);
fs.unlinkSync(outputPath);
});