Skip to content

🎥 Make videos programmatically with React

fix window test

Jonny Burger0184ba726562
diff --git a/packages/bundler/package.json b/packages/bundler/package.json
index 1f7be1baa9..19fa2e563e 100644
--- a/packages/bundler/package.json
+++ b/packages/bundler/package.json
@@ -7,7 +7,7 @@
"url": "https://github.com/JonnyBurger/remotion"
},
"scripts": {
- "test": "eslint 'src' --ext ts,tsx",
+ "test": "eslint src --ext ts,tsx",
"build": "tsc -d"
},
"files": [
diff --git a/packages/cli/package.json b/packages/cli/package.json
index d2ad946925..579e161014 100644
--- a/packages/cli/package.json
+++ b/packages/cli/package.json
@@ -8,7 +8,7 @@
},
"module": "true",
"scripts": {
- "test": "eslint 'src' --ext ts,tsx",
+ "test": "eslint src --ext ts,tsx",
"build": "tsc -d && node add-bin.js",
"dev": "ts-node src/preview.ts x ../example/index.tsx"
},
diff --git a/packages/core/package.json b/packages/core/package.json
index 898f110197..8bd6d2459b 100644
--- a/packages/core/package.json
+++ b/packages/core/package.json
@@ -4,7 +4,7 @@
"description": "Render videos in React",
"main": "dist/index.js",
"scripts": {
- "test": "eslint 'src' --ext ts,tsx && jest",
+ "test": "eslint src --ext ts,tsx && jest",
"build": "tsc -d",
"prerelease": "cp ../../README.md ."
},
diff --git a/packages/create-video/_template/package.json b/packages/create-video/_template/package.json
index 9d78aa5de6..3de025a9f7 100644
--- a/packages/create-video/_template/package.json
+++ b/packages/create-video/_template/package.json
@@ -7,7 +7,7 @@
"build": "remotion render src/index.tsx HelloWorld out.mp4",
"upgrade": "remotion upgrade",
"server": "ts-node server.tsx",
- "test": "eslint 'src' --ext ts,tsx,js,jsx && tsc"
+ "test": "eslint src --ext ts,tsx,js,jsx && tsc"
},
"repository": {},
"license": "UNLICENSED",
diff --git a/packages/docs/docs/jsx-support.md b/packages/docs/docs/jsx-support.md
index 6fee6d39c4..4c0fc0ed88 100644
--- a/packages/docs/docs/jsx-support.md
+++ b/packages/docs/docs/jsx-support.md
@@ -14,8 +14,8 @@ You may import `.js` and `.jsx` files as normal. If you would like to completely
If you upgrade from Remotion 1.2 or older, consider changing the `npm test` command to also include JavaScript files, and to remove the `tsc` command:
```diff
-- "test": "eslint 'src' --ext ts,tsx && tsc"
-+ "test": "eslint 'src' --ext ts,tsx,js,jsx"
+- "test": "eslint src --ext ts,tsx && tsc"
++ "test": "eslint src --ext ts,tsx,js,jsx"
```
## See also
diff --git a/packages/example/package.json b/packages/example/package.json
index 18779ef93d..839e9e2d61 100644
--- a/packages/example/package.json
+++ b/packages/example/package.json
@@ -6,7 +6,7 @@
"private": true,
"scripts": {
"start": "npx ts-node ../cli/src/index.tsx preview src/index.tsx",
- "test": "eslint 'src' --ext ts,tsx,js,jsx",
+ "test": "eslint src --ext ts,tsx,js,jsx",
"build": "tsc -d",
"render": "remotion render src/index.tsx react-svg video.mp4"
},
diff --git a/packages/renderer/package.json b/packages/renderer/package.json
index 2a611842f5..8a84a1641b 100644
--- a/packages/renderer/package.json
+++ b/packages/renderer/package.json
@@ -4,7 +4,7 @@
"description": "Renderer for Remotion",
"main": "dist/index.js",
"scripts": {
- "test": "eslint 'src' --ext ts,tsx",
+ "test": "eslint src --ext ts,tsx && jest",
"build": "tsc -d"
},
"files": [