Skip to content

🎥 Make videos programmatically with React

660 B
Raw Blame
import {expect, test} from 'bun:test';
import {getSkillsAddArgs} from '../install-skills';

test('Install all skills selects every skill from remotion-dev/skills', () => {
	const args = getSkillsAddArgs('recommended');

	expect(args).toEqual([
		'-y',
		'--loglevel=error',
		'[email protected]',
		'add',
		'remotion-dev/skills',
		'--agent',
		'universal',
		'--skill',
		'*',
		'--yes',
	]);
});

test('Choose individual skills leaves selection to the skills prompt', () => {
	const args = getSkillsAddArgs('choose');

	expect(args).toEqual([
		'-y',
		'--loglevel=error',
		'[email protected]',
		'add',
		'remotion-dev/skills',
		'--agent',
		'universal',
	]);
});