🎥 Make videos programmatically with React
import {expect, test} from 'bun:test';
import {
EFFECT_CATALOG,
getEffectDocumentationLink,
} from '@remotion/studio-shared';
test('effect catalog exposes documentation links for picker context menu', () => {
const links = new Map(
EFFECT_CATALOG.map((item) => [
item.label,
getEffectDocumentationLink(item),
]),
);
expect(links.get('brightness()')).toBe(
'https://www.remotion.dev/docs/effects/brightness',
);
expect(links.get('colorCorrection()')).toBe(
'https://www.remotion.dev/docs/effects/color-correction',
);
expect(links.get('xyTranslate()')).toBe(
'https://www.remotion.dev/docs/effects/xy-translate',
);
expect(links.get('uvTranslate()')).toBe(
'https://www.remotion.dev/docs/effects/uv-translate',
);
expect(links.get('pixelate()')).toBe(
'https://www.remotion.dev/docs/effects/pixelate',
);
expect(links.get('linearProgressivePixelate()')).toBe(
'https://www.remotion.dev/docs/effects/linear-progressive-pixelate',
);
expect(links.get('radialProgressivePixelate()')).toBe(
'https://www.remotion.dev/docs/effects/radial-progressive-pixelate',
);
expect(links.get('shrinkwrap()')).toBe(
'https://www.remotion.dev/docs/effects/shrinkwrap',
);
expect(links.get('lightLeak()')).toBe(
'https://www.remotion.dev/docs/effects/light-leak',
);
expect(links.get('starburst()')).toBe(
'https://www.remotion.dev/docs/effects/starburst',
);
});