Files
ComfyUI_frontend/docs/testing/litegraph-testing.md
huang47 b3293d327f docs: move LiteGraph test guidance into docs
Move the litegraph-specific CodeRabbit review rules into docs/testing/litegraph-testing.md, link the guide from docs/testing/README.md, and keep .coderabbit.yaml as a path-to-docs bridge.

Verification: parsed .coderabbit.yaml with Ruby YAML and ran git diff --check.
2026-07-08 12:24:01 -07:00

519 B

LiteGraph Testing Guide

This guide covers test patterns for LiteGraph graph, node, link, subgraph, and workflow behavior in ComfyUI Frontend.

Shared Factories

Reuse shared factories in src/utils/__tests__/litegraphTestUtils.ts instead of hand-rolling LiteGraph node, canvas, graph, subgraph, or workflow builders.

Use real LiteGraph instances or shared factories when they exercise behavior directly. Avoid mocking LiteGraph classes unless the test is intentionally checking a seam outside LiteGraph itself.