web-renderer-test
作者: remotion-dev
使用vitest夹具对web渲染器组件进行视觉快照测试。在packages/web-renderer/src/test/fixtures中创建测试夹具,定义React组件、尺寸、帧率和时长。在packages/web-renderer/src/test/Root.tsx中注册夹具以启用预览功能。编写测试用例,使用renderStillOnWeb()渲染静态图像,并通过testImage()快照比较验证输出。使用bunx vitest src/test/video.test.tsx运行测试,并更新文档...
npx skills add https://github.com/remotion-dev/remotion --skill web-renderer-test来自 remotion-dev 的更多技能
remotion-best-practices
remotion-dev
Remotion - 在React中创建视频的最佳实践
official
add-expert
remotion-dev
在Remotion专家页面中添加新专家
official
add-sfx
remotion-dev
为 @remotion/sfx 添加新的音效
official
docs-demo
remotion-dev
为Remotion文档添加交互式演示。用于为文档页面创建新的<Demo>组件时使用。
official
fix-dependabot
remotion-dev
修复 Dependabot PR,更新依赖的所有单体仓库实例,运行 bun install 并推送
official
make-pr
remotion-dev
自动化拉取请求创建,包含格式化提交和分支管理。确保不在主分支上,必要时创建功能分支。在提交前对所有受影响的包运行Oxfmt代码格式化。使用package.json中的包名格式化提交和PR标题(例如:“@remotion/shapes:添加心形”)。推送更改后,使用gh CLI自动打开拉取请求。
official
pr-name
remotion-dev
PR 的正确命名
official
remotion-best-practices
remotion-dev
Remotion - 在React中创建视频的最佳实践
official