Skip to content

🎥 Make videos programmatically with React

vitest

Jonny Burgerad4b88f83ed0
diff --git a/packages/animation-utils/package.json b/packages/animation-utils/package.json
index 93ee098917..4f0edf353c 100644
--- a/packages/animation-utils/package.json
+++ b/packages/animation-utils/package.json
@@ -14,7 +14,7 @@
"lint": "eslint src --ext ts,tsx",
"watch": "tsc -w",
"build": "tsc -d && rollup --config rollup.config.js",
- "test": "bun test src"
+ "test": "vitest --run"
},
"dependencies": {
"remotion": "workspace:*"
@@ -35,6 +35,7 @@
"prettier-plugin-organize-imports": "3.2.4",
"eslint": "8.56.0",
"@jonny/eslint-config": "3.0.281",
+ "vitest": "0.31.1",
"rollup": "^2.70.1"
},
"exports": {
diff --git a/packages/animation-utils/src/test/interpolate-styles.test.ts b/packages/animation-utils/src/test/interpolate-styles.test.ts
index 642c3a4d81..39e550cd55 100644
--- a/packages/animation-utils/src/test/interpolate-styles.test.ts
+++ b/packages/animation-utils/src/test/interpolate-styles.test.ts
@@ -1,5 +1,5 @@
-import {expect, test} from 'bun:test';
import {Easing} from 'remotion';
+import {expect, test} from 'vitest';
import {interpolateStyles} from '../transformation-helpers/interpolate-styles';
import {translate} from '../transformation-helpers/make-transform';
diff --git a/packages/animation-utils/src/test/make-transform.test.ts b/packages/animation-utils/src/test/make-transform.test.ts
index c180e0b45d..70ea9df157 100644
--- a/packages/animation-utils/src/test/make-transform.test.ts
+++ b/packages/animation-utils/src/test/make-transform.test.ts
@@ -1,4 +1,4 @@
-import {expect, test} from 'bun:test';
+import {expect, test} from 'vitest';
import {
makeTransform,
perspective,
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index ff293558a4..69891cdd38 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -58,6 +58,9 @@ importers:
rollup:
specifier: ^2.70.1
version: 2.76.0
+ vitest:
+ specifier: 0.31.1
packages/astro-example:
dependencies: