Skip to content

🎥 Make videos programmatically with React

480 B
Raw Blame
import {test} from 'vitest';
import {renderStillOnWeb} from '../render-still-on-web';
import '../symbol-dispose';
import {svgDataUri} from './fixtures/svg-data-uri';
import {testImage} from './utils';

test('should render an SVG data URI', async () => {
	const blob = await (
		await renderStillOnWeb({
			licenseKey: 'free-license',
			composition: svgDataUri,
			frame: 0,
			inputProps: {},
		})
	).blob({format: 'png'});

	await testImage({blob, testId: 'svg-data-uri'});
});