Skip to content

🎥 Make videos programmatically with React

move test to bun

Jonny Burgerf733991f26e8
diff --git a/packages/example/package.json b/packages/example/package.json
index 11243af2dd..cea5248ea8 100644
--- a/packages/example/package.json
+++ b/packages/example/package.json
@@ -19,7 +19,7 @@
"comps": "remotion compositions",
"clean": "rm -rf build && rm -rf out",
"lint": "eslint src --ext ts,tsx,js,jsx",
- "test": "vitest --run",
+ "test": "bun test src",
"render": "remotion render react-svg",
"bundle": "remotion bundle",
"render-js": "remotion render src/entry.jsx framer",
@@ -84,7 +84,6 @@
"three": "0.158.0",
"ts-unused-exports": "^7.0.1",
"use-asset": "^1.0.4",
- "vitest": "0.31.1",
"zod": "3.22.3",
"style-loader": "2.0.0",
"css-loader": "5.2.7",
diff --git a/packages/example/src/test/stills-and-colorspaces.test.ts b/packages/example/src/test/stills-and-colorspaces.test.ts
index 6eaa42a394..b928e7768d 100644
--- a/packages/example/src/test/stills-and-colorspaces.test.ts
+++ b/packages/example/src/test/stills-and-colorspaces.test.ts
@@ -42,7 +42,7 @@ test(
const fileOSRoot = path.parse(__dirname).root;
- await expect(() =>
+ await expect(
renderStill({
composition,
output: testOut,
@@ -53,7 +53,7 @@ test(
/Cannot use frame 500: Duration of composition is 300, therefore the highest frame that can be rendered is 299/,
);
- await expect(() =>
+ await expect(
renderStill({
composition,
output: process.platform === 'win32' ? fileOSRoot : '/var',
@@ -61,7 +61,7 @@ test(
}),
).rejects.toThrow(/already exists, but is not a file/);
- await expect(() =>
+ await expect(
renderStill({
composition,
output: 'src/index.ts',
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index d978585a8c..e7ddbd096f 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -1077,9 +1077,6 @@ importers:
use-asset:
specifier: ^1.0.4
version: 1.0.4([email protected])
- vitest:
- specifier: 0.31.1
- version: 0.31.1([email protected])
zod:
specifier: 3.22.3
version: 3.22.3
@@ -20740,6 +20737,7 @@ packages:
resolution: {integrity: sha512-Ju0+lEMyzMVZarkTn/gqRpdqd5dOPaz1mCZ0SH3JV6iFw81PldE/PEB1hWVEA288HPt4WXW8O7AWxB10M+03QQ==}
+ dev: false
resolution: {integrity: sha512-veYYhQa+D1QBKznvhUHxb8faxlrwUnxseDAbAp457E0wLNio2bOSKnjYDhMj+YiAq61xrMGhQk9iXVk5FzgQMw==}
@@ -26303,6 +26301,7 @@ packages:
chokidar: 3.5.3
immutable: 4.3.6
source-map-js: 1.0.2
+ dev: false
resolution: {integrity: sha512-NqVDv9TpANUjFm0N8uM5GxL36UgKi9/atZw+x7YFnQ8ckwFGKrl4xX4yWtrey3UJm5nP1kUbnYgLopqWNSRhWw==}
@@ -26839,6 +26838,7 @@ packages:
resolution: {integrity: sha512-R0XvVJ9WusLiqTCEiGCmICCMplcCkIwwR11mOSD9CR5u+IXYdiseeEuXCVAjS54zqwkLcPNnmU4OeJ6tUrWhDw==}
engines: {node: '>=0.10.0'}
+ dev: false
resolution: {integrity: sha512-UXWMKhLOwVKb728IUtQPXxfYU+usdybtUrK/8uGE8CQMvrhOpwvzDBwj0QhSL7MQc7vIsISBG8VQ8+IDQxpfQA==}
@@ -28576,7 +28576,7 @@ packages:
vfile-message: 4.0.2
dev: false
resolution: {integrity: sha512-BajE/IsNQ6JyizPzu9zRgHrBwczkAs0erQf/JRpgTIESpKvNj9/Gd0vxX905klLkb0I0SJVCKbdrl5c6FnqYKA==}
engines: {node: '>=v14.18.0'}
hasBin: true
@@ -28586,7 +28586,7 @@ packages:
mlly: 1.5.0
pathe: 1.1.2
picocolors: 1.1.0
- vite: 4.5.3(@types/[email protected])([email protected])
+ vite: 4.5.3(@types/[email protected])
transitivePeerDependencies:
- '@types/node'
- less
@@ -28668,7 +28668,7 @@ packages:
fsevents: 2.3.3
dev: true
resolution: {integrity: sha512-kQL23kMeX92v3ph7IauVkXkikdDRsYMGTVl5KY2E9OY4ONLvkHf04MDTbnfo6NKxZiDLWzVpP5oTa8hQD8U3dg==}
engines: {node: ^14.18.0 || >=16.0.0}
hasBin: true
@@ -28700,7 +28700,6 @@ packages:
esbuild: 0.18.20
postcss: 8.4.47
rollup: 3.29.4
- sass: 1.77.2
optionalDependencies:
fsevents: 2.3.3
@@ -28846,8 +28845,8 @@ packages:
strip-literal: 1.3.0
tinybench: 2.6.0
tinypool: 0.5.0
- vite: 4.5.3(@types/[email protected])([email protected])
- vite-node: 0.31.1(@types/[email protected])([email protected])
+ vite: 4.5.3(@types/[email protected])
+ vite-node: 0.31.1(@types/[email protected])
why-is-node-running: 2.2.2
transitivePeerDependencies:
- less
@@ -28858,72 +28857,6 @@ packages:
- supports-color
- terser
- resolution: {integrity: sha512-/dOoOgzoFk/5pTvg1E65WVaobknWREN15+HF+0ucudo3dDG/vCZoXTQrjIfEaWvQXmqScwkRodrTbM/ScMpRcQ==}
- engines: {node: '>=v14.18.0'}
- hasBin: true
- peerDependencies:
- '@edge-runtime/vm': '*'
- '@vitest/browser': '*'
- '@vitest/ui': '*'
- happy-dom: '*'
- jsdom: '*'
- playwright: '*'
- safaridriver: '*'
- webdriverio: '*'
- peerDependenciesMeta:
- '@edge-runtime/vm':
- optional: true
- '@vitest/browser':
- optional: true
- '@vitest/ui':
- optional: true
- happy-dom:
- optional: true
- jsdom:
- optional: true
- playwright:
- optional: true
- safaridriver:
- optional: true
- webdriverio:
- optional: true
- dependencies:
- '@types/chai': 4.3.11
- '@types/chai-subset': 1.3.5
- '@types/node': 20.14.11
- '@vitest/expect': 0.31.1
- '@vitest/runner': 0.31.1
- '@vitest/snapshot': 0.31.1
- '@vitest/spy': 0.31.1
- '@vitest/utils': 0.31.1
- acorn: 8.11.3
- acorn-walk: 8.3.2
- cac: 6.7.14
- chai: 4.4.1
- concordance: 5.0.4
- debug: 4.3.6
- local-pkg: 0.4.3
- magic-string: 0.30.5
- pathe: 1.1.2
- picocolors: 1.0.1
- std-env: 3.7.0
- strip-literal: 1.3.0
- tinybench: 2.6.0
- tinypool: 0.5.0
- vite: 4.5.3(@types/[email protected])([email protected])
- vite-node: 0.31.1(@types/[email protected])([email protected])
- why-is-node-running: 2.2.2
- transitivePeerDependencies:
- - less
- - lightningcss
- - sass
- - stylus
- - sugarss
- - supports-color
- - terser
- dev: false
-
resolution: {integrity: sha512-L9WMGRfrjOhgHSdOYgCt/yRMsXzLDJSL7BPrOZt73gU0iWO4mpqzqQzOz5srxqTvMBaR0XZTSrVWo4j55Rc6cA==}
dev: false