Skip to content

🎥 Make videos programmatically with React

fix a test

Jonny Burgerc8b2800d1871
diff --git a/packages/cli/src/test/folder-tree.test.ts b/packages/cli/src/test/folder-tree.test.ts
index ac3d1d35ff..b4228d001a 100644
--- a/packages/cli/src/test/folder-tree.test.ts
+++ b/packages/cli/src/test/folder-tree.test.ts
@@ -9,6 +9,8 @@ const component = React.lazy(() =>
Promise.resolve({default: SampleComp as ComponentType<unknown>})
);
+const any = z.any();
+
test('Should create a good folder tree with 1 item inside and 1 item outside', () => {
const tree = createFolderTree(
[
@@ -23,7 +25,7 @@ test('Should create a good folder tree with 1 item inside and 1 item outside', (
nonce: 0,
width: 1080,
parentFolderName: null,
- schema: z.any(),
+ schema: any,
},
{
component,
@@ -36,7 +38,7 @@ test('Should create a good folder tree with 1 item inside and 1 item outside', (
nonce: 0,
width: 1080,
parentFolderName: null,
- schema: z.any(),
+ schema: any,
},
],
[
@@ -64,6 +66,7 @@ test('Should create a good folder tree with 1 item inside and 1 item outside', (
id: 'my-comp',
nonce: 0,
width: 1080,
+ schema: any,
},
key: 'my-comp',
type: 'composition',
@@ -86,6 +89,7 @@ test('Should create a good folder tree with 1 item inside and 1 item outside', (
id: 'second-comp',
nonce: 0,
width: 1080,
+ schema: any,
},
key: 'second-comp',
type: 'composition',
@@ -107,7 +111,7 @@ test('Should handle nested folders well', () => {
nonce: 0,
width: 1080,
parentFolderName: 'my-third-folder/my-second-folder',
- schema: z.any(),
+ schema: any,
},
],
[
@@ -160,6 +164,7 @@ test('Should handle nested folders well', () => {
id: 'my-comp',
nonce: 0,
width: 1080,
+ schema: any,
},
key: 'my-comp',
type: 'composition',