Skip to content

🎥 Make videos programmatically with React

automatic root directory

patsalv29876d916aea
diff --git a/packages/example/src/test/stills.test.ts b/packages/example/src/test/stills.test.ts
index 9c7bdc41a9..ad015cc6c4 100644
--- a/packages/example/src/test/stills.test.ts
+++ b/packages/example/src/test/stills.test.ts
@@ -37,7 +37,9 @@ test('Can render a still using Node.JS APIs', async () => {
});
const serveUrl = `http://localhost:${port}`;
+ const fileOSRoot = path.parse(__dirname).root;
+ console.log('fileOSRoot', fileOSRoot);
expect(() =>
renderStill({
composition,
@@ -52,7 +54,7 @@ test('Can render a still using Node.JS APIs', async () => {
expect(() =>
renderStill({
composition,
- output: process.platform === 'win32' ? 'D:\\' : '/var',
+ output: fileOSRoot,
serveUrl,
})
).rejects.toThrow(/already exists, but is not a file/);
diff --git a/packages/example/tsconfig.json b/packages/example/tsconfig.json
index 794e9bdf6e..ee3083f0c1 100644
--- a/packages/example/tsconfig.json
+++ b/packages/example/tsconfig.json
@@ -10,7 +10,7 @@
"lib/*": ["./src/lib/*"]
}
},
- "include": ["src"],
+ "include": ["src", "../letter.js"],
"references": [
{"path": "../core"},
{"path": "../media-utils"},