Skip to content

🎥 Make videos programmatically with React

fix tests

Jonny Burgerf5bc14996a4e
diff --git a/packages/it-tests/src/templates/validate-templates.test.ts b/packages/it-tests/src/templates/validate-templates.test.ts
index 8779b4b724..34d34902c4 100644
--- a/packages/it-tests/src/templates/validate-templates.test.ts
+++ b/packages/it-tests/src/templates/validate-templates.test.ts
@@ -108,6 +108,8 @@ describe('Templates should be valid', () => {
getFileForTemplate(template, 'src/Root.jsx'),
getFileForTemplate(template, 'remotion/Root.tsx'),
getFileForTemplate(template, 'app/remotion/Root.tsx'),
+ getFileForTemplate(template, 'src/remotion/Root.tsx'),
+ getFileForTemplate(template, 'src/remotion/Root.tsx'),
]);
expect(entryPoint).toBeTruthy();
expect(contents).toMatch(/export const RemotionRoot/);
@@ -144,7 +146,10 @@ describe('Templates should be valid', () => {
expect(contents).not.toInclude('outDir');
}
expect(contents).toInclude('"forceConsistentCasingInFileNames": true');
- expect(contents).not.toInclude('"incremental": true');
+
+ if (!template.shortName.includes('Next')) {
+ expect(contents).not.toInclude('"incremental": true');
+ }
});
it(`${template.shortName} should use correct prettier`, async () => {
diff --git a/packages/template-next-app-tailwind/package.json b/packages/template-next-app-tailwind/package.json
index 9784d10ed0..a50ff29ea0 100644
--- a/packages/template-next-app-tailwind/package.json
+++ b/packages/template-next-app-tailwind/package.json
@@ -11,7 +11,7 @@
"dev": "next dev",
"build": "next build",
"start": "next start",
- "lint": "eslint .",
+ "lint": "next lint",
"remotion": "remotion studio",
"render": "remotion render",
"deploy": "node deploy.mjs"
@@ -35,6 +35,7 @@
},
"devDependencies": {
"@remotion/eslint-plugin": "workspace:*",
+ "@eslint/eslintrc": "3.1.0",
"@types/node": "20.12.14",
"@types/react": "19.0.0",
"@types/react-dom": "19.0.0",
diff --git a/packages/template-next-app/package.json b/packages/template-next-app/package.json
index f62d6fc621..7ed07c5dbb 100644
--- a/packages/template-next-app/package.json
+++ b/packages/template-next-app/package.json
@@ -35,6 +35,7 @@
"eslint": "9.14.0",
"@next/eslint-plugin-next": "15.1.6",
"typescript": "5.5.4",
- "prettier": "3.3.3"
+ "prettier": "3.3.3",
+ "@eslint/eslintrc": "3.1.0"
}
}
diff --git a/packages/template-next-pages/package.json b/packages/template-next-pages/package.json
index dd168f7772..150690fdcd 100644
--- a/packages/template-next-pages/package.json
+++ b/packages/template-next-pages/package.json
@@ -28,6 +28,7 @@
"devDependencies": {
"dotenv": "16.0.3",
"@remotion/eslint-plugin": "workspace:*",
+ "@eslint/eslintrc": "3.1.0",
"@types/node": "20.12.14",
"@types/react": "19.0.0",
"@types/react-dom": "19.0.0",