Skip to content

🎥 Make videos programmatically with React

make `^` optional in templates

Jonny Burgerac644751dc1a
diff --git a/packages/create-video/src/test/validate-templates.test.ts b/packages/create-video/src/test/validate-templates.test.ts
index 20d4d513b0..72c0003983 100644
--- a/packages/create-video/src/test/validate-templates.test.ts
+++ b/packages/create-video/src/test/validate-templates.test.ts
@@ -28,16 +28,16 @@ for (const template of FEATURED_TEMPLATES) {
expect(body.scripts.build).not.toContain('index');
}
- expect(body.dependencies.remotion).toMatch(/^\^3/);
- expect(body.dependencies['@remotion/cli']).toMatch(/^\^3/);
+ expect(body.dependencies.remotion).toMatch(/^\^?3/);
+ expect(body.dependencies['@remotion/cli']).toMatch(/^\^?3/);
expect(body.dependencies.react).toMatch(/^\^?18/);
expect(body.dependencies['react-dom']).toMatch(/^\^?18/);
expect(body.devDependencies.prettier).toMatch(/^\^?2/);
expect(body.devDependencies.eslint).toMatch(/^\^?8/);
const eitherPluginOrConfig =
- body.devDependencies['@remotion/eslint-config']?.match(/^\^3/) ||
- body.devDependencies['@remotion/eslint-plugin']?.match(/^\^3/);
+ body.devDependencies['@remotion/eslint-config']?.match(/^\^?3/) ||
+ body.devDependencies['@remotion/eslint-plugin']?.match(/^\^?3/);
expect(eitherPluginOrConfig).toBeTruthy();