web-renderer-test
Add a test case to the web renderer
- License 许可
- MIT
- 最近更新
- 2026-10-20
- Stars
- ★ 35
- Forks
- 5
01 前言 Front Matter
- name
- web-renderer-test
- description
- Add a test case to the web renderer
02 资源文件 37
- 参考文档01_MONITOR_CODEBASE_PLAN.yaml8.8 KB
- 参考文档02_GAPS_PLAN.yaml12.2 KB
- 参考文档artifacts/agent_improvements.txt54 B
- 参考文档artifacts/ai_improvements.txt54 B
- 参考文档artifacts/coding-agent_improvements.txt31 B
- 参考文档artifacts/embry-os_improvements.txt31 B
- 参考文档artifacts/embry-terminal_improvements.txt54 B
- 参考文档artifacts/extractor_improvements.txt31 B
- 参考文档artifacts/fetcher_0N_FIX_TASKS.md11.3 KB
- 参考文档artifacts/fetcher_improvements.txt5.4 KB
- 参考文档artifacts/horus-ui_improvements.txt31 B
- 参考文档artifacts/memory_improvements.txt11.0 KB
- 参考文档artifacts/mom_improvements.txt54 B
- 参考文档artifacts/orchestrate-test_improvements.txt54 B
- 参考文档artifacts/pdf_oxide_improvements.txt31 B
- 参考文档artifacts/pi-extension-custom-provider-anthropic_improvements.txt54 B
- 参考文档artifacts/pi-extension-custom-provider-gitlab-duo_improvements.txt54 B
- 参考文档artifacts/pi-extension-custom-provider-qwen-cli_improvements.txt54 B
- 参考文档artifacts/pi-extension-with-deps_improvements.txt54 B
- 参考文档artifacts/pi-mono_improvements.txt31 B
- 参考文档artifacts/pi-web-ui-example_improvements.txt54 B
- 参考文档artifacts/pods_improvements.txt54 B
- 参考文档artifacts/scillm_improvements.txt54 B
- 参考文档artifacts/skills_improvements.txt31 B
- 参考文档artifacts/sparta_improvements.txt12.5 KB
- 参考文档artifacts/switchboard_improvements.txt54 B
- 参考文档artifacts/tui_improvements.txt54 B
- 参考文档artifacts/web-ui_improvements.txt54 B
- 脚本autofix_docstrings.py15.7 KB
- 脚本cache_state.py5.6 KB
- 脚本coverage_tracker.py3.5 KB
- 脚本dep_graph.py6.4 KB
- 脚本duplication_detector.py5.1 KB
- 脚本quality_checks.py7.4 KB
- 脚本run.sh41.5 KB
- 脚本sanity.sh2.6 KB
- 脚本trend_tracker.py7.4 KB
03 SKILL.md 正文
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:
bunx vitest src/test/video.test.tsx
Example
Each test is powered by a fixture in packages/web-renderer/src/test/fixtures.
A fixture looks like this for example:
import {AbsoluteFill} from 'remotion';
const Component: React.FC = () => {
return (
<AbsoluteFill
style={{
justifyContent: 'center',
alignItems: 'center',
}}
>
<div
style={{
backgroundColor: 'red',
width: 100,
height: 100,
borderRadius: 20,
}}
/>
</AbsoluteFill>
);
};
export const backgroundColor = {
component: Component,
id: 'background-color',
width: 200,
height: 200,
fps: 25,
durationInFrames: 1,
} as const;
The corresponding test looks like this:
import {test} from 'vitest';
import {renderStillOnWeb} from '../render-still-on-web';
import {backgroundColor} from './fixtures/background-color';
import {testImage} from './utils';
test('should render background-color', async () => {
const blob = await renderStillOnWeb({
licenseKey: 'free-license',
composition: backgroundColor,
frame: 0,
inputProps: {},
imageFormat: 'png',
});
await testImage({blob, testId: 'background-color'});
});
Adding a new test
- Add a new fixture in
packages/web-renderer/src/test/fixtures. - Important: Add the fixture to
packages/web-renderer/src/test/Root.tsxto add a way to preview it. - Add a new test in
packages/web-renderer/src/test. - Run
bunx vitest src/test/video.test.tsxto execute the test. - Important: Update
packages/docs/docs/client-side-rendering/limitations.mdxto reflect the newly supported property.
04 同仓库更多 Skills
cmo-studio-integration
When mktg-studio is running on this machine, /cmo proactively narrates work into the dashboard via Bash + curl against the localhost HTTP API. Detect via /api/health, then log every meaningful action — the user sees what /cmo is doing in real time.
voice-extraction
Reverse-engineer any person's writing voice from their content. Paste in posts, articles, tweets, or essays and this skill launches 10 parallel Sonnet subagents to analyze every dimension of the voice, then synthesizes into a voice file. Use when someone says 'match this voice,' 'analyze this writing,' 'extract their voice,' 'make me sound like this,' 'study this person's writing,' or pastes in content they want to learn from.
visual-style
Build a persistent visual brand identity for image generation. Defines how the brand looks visually — aesthetic, lighting, composition, mood — and writes it to brand/creative-kit.md so /image-gen and other creative skills produce consistent on-brand visuals. Three modes: Extract (from website/URL), Build (interview), Reference (mood board/examples). Use when starting any project that needs images, when the user says "visual style", "brand aesthetic", "image style", "visual identity", "how should our images look", "build visual brand", "define our look", or when /image-gen outputs feel generic because no visual style exists yet.
video-content
Three-tier video pipeline: ffmpeg Quick (5s, instant) → ffmpeg Enhanced with Ken Burns (15s, polished) → Remotion Animated (60-90s, production-grade). Takes static slides from Paper MCP or any PNGs and assembles them into platform-ready video. Make sure to use this skill whenever the user has slides, images, or PNGs and wants to turn them into video — even if they just say 'make a video from these', 'animate my slides', 'I have images and need a TikTok', or 'stitch these together'. Also use when they mention ffmpeg video assembly, Remotion-animated slide assembly, Ken Burns effects, or any slides-to-video pipeline. Owns the slides→MP4 assembly pipeline; for writing, debugging, or running `remotion render` on Remotion code itself, see /remotion-best-practices; for screen-recorded product demos, see /marketing-demo. Works with any PNG source — Paper exports, Canva, screenshots, anything.
typefully
Create, schedule, and manage social media posts via Typefully. ALWAYS use this skill when asked to draft, schedule, post, or check tweets, posts, threads, or social media content for Twitter/X, LinkedIn, Threads, Bluesky, or Mastodon.
tiktok-slideshow
Orchestrator skill that chains /slideshow-script → /paper-marketing → /video-content for end-to-end TikTok slideshow production. Each phase is an independent Lego block — this orchestrator is just one recipe that combines them. Produces 5 publishable TikTok videos from a single positioning angle. Triggers on "TikTok slideshow", "TikTok video", "make TikTok", "slideshow video", "TikTok content".