web-renderer-test

Add a test case to the web renderer

By remotion-dev · 2,448 installs

npx skills add remotion-dev/remotion --skill web-renderer-test

Source repository · Upstream listing

Use this skill to update existing web renderer tests when needed for implementation changes. Add new tests only when the user explicitly requests them. The web renderer is in packages/web renderer and the test suite is in packages/web renderer/src/test . It uses visual snapshot testing using vitest. A test file can for example be executed using: Example Each test is powered by a fixture in packages/web renderer/src/test/fixtures . A fixture looks like this for example: The corresponding test looks like this: Adding a new test 1. Add a new fixture in packages/web renderer/src/test/fixtures . 2. Important : Add the fixture to packages/web renderer/src/test/Root.tsx to add a way to preview it. 3. Add a new test in packages/web renderer/src/test . 4. Run bunx vitest src/test/video.test.tsx to execute the test. 5. Important : Update packages/docs/docs/client side rendering/limitations.mdx to reflect the newly supported property.