Skip to content

🎥 Make videos programmatically with React

validate templates for v4

Jonny Burger218deb92dde6
diff --git a/packages/create-video/src/test/validate-templates.test.ts b/packages/create-video/src/test/validate-templates.test.ts
index 224216f4ca..4dae8bffa8 100644
--- a/packages/create-video/src/test/validate-templates.test.ts
+++ b/packages/create-video/src/test/validate-templates.test.ts
@@ -31,22 +31,19 @@ describe('Templates should be valid', () => {
expect(body.scripts.build).not.toContain('index');
}
- // TODO: Enable this after v4
- // expect(body.dependencies.remotion).toMatch(/^\^?4/);
- // expect(body.dependencies['@remotion/cli']).toMatch(/^\^?4/);
+ expect(body.dependencies.remotion).toMatch(/^\^?4/);
+ expect(body.dependencies['@remotion/cli']).toMatch(/^\^?4/);
expect(body.dependencies.react).toMatch(/^\^?18/);
expect(body.dependencies['react-dom']).toMatch(/^\^?18/);
expect(body.devDependencies.prettier).toMatch(/^\^?2.8.1/);
expect(body.devDependencies.eslint).toMatch(/^\^?8.30/);
- // @ts-expect-error
// eslint-disable-next-line @typescript-eslint/no-unused-vars
const eitherPluginOrConfig =
body.devDependencies['@remotion/eslint-config']?.match(/^\^?3/) ||
body.devDependencies['@remotion/eslint-plugin']?.match(/^\^?3/);
- // TODO: Enable after v4 merge
- // expect(eitherPluginOrConfig).toBeTruthy();
+ expect(eitherPluginOrConfig).toBeTruthy();
if (!template.shortName.includes('JavaScript')) {
expect(body.devDependencies.typescript).toMatch(/^\^?4/);