Skip to content

🎥 Make videos programmatically with React

add bun in tests

thecmdrunner4d77305a7275
diff --git a/packages/create-video/src/test/patch-package-json.test.ts b/packages/create-video/src/test/patch-package-json.test.ts
index 62e730e2c2..2ba703496f 100644
--- a/packages/create-video/src/test/patch-package-json.test.ts
+++ b/packages/create-video/src/test/patch-package-json.test.ts
@@ -2,7 +2,7 @@ import {expect, test} from 'vitest';
import {patchPackageJson} from '../patch-package-json';
import type {PackageManager} from '../pkg-managers';
-const packageManagers: PackageManager[] = ['npm', 'pnpm', 'yarn'];
+const packageManagers: PackageManager[] = ['npm', 'pnpm', 'yarn', 'bun'];
for (const packageManager of packageManagers) {
test(`Using ${packageManager} package manager provides the correct "packageManager" entry in package.json`, () => {
diff --git a/packages/create-video/src/test/validate-templates.test.ts b/packages/create-video/src/test/validate-templates.test.ts
index 053cf944ea..d4ef4a8069 100644
--- a/packages/create-video/src/test/validate-templates.test.ts
+++ b/packages/create-video/src/test/validate-templates.test.ts
@@ -94,6 +94,20 @@ describe('Templates should be valid', () => {
12000,
);
+ it(
+ template.shortName + ' should not have a bun.lockb',
+ async () => {
+ const packageLockJson = getFileForTemplate(template, 'bun.lockb');
+
+ const res = await got(packageLockJson, {
+ throwHttpErrors: false,
+ });
+
+ expect(res.statusCode).toBe(404);
+ },
+ 12000,
+ );
+
it(
template.shortName + ' should not have a standard entry point',
async () => {