🎥 Make videos programmatically with React
import {test} from 'vitest';
import {page} from 'vitest/browser';
import {renderStillOnWeb} from '../render-still-on-web';
import '../symbol-dispose';
import {linearGradient} from './fixtures/linear-gradient';
import {testImage} from './utils';
test('should render linear-gradient', async () => {
await page.viewport(700, 400);
const blob = await (
await renderStillOnWeb({
licenseKey: 'free-license',
composition: linearGradient,
frame: 0,
inputProps: {},
})
).blob({format: 'png'});
await testImage({blob, testId: 'linear-gradient', threshold: 0.02});
});