Skip to content

Commit 6946098

Browse files
DrJKLclaude
andcommitted
test: stub readNodeRect in the ghost placement layout mock
The hand-rolled layoutStore mock predates this branch's store-backed geometry reads, so every ghost test threw on `LGraphNode.boundingRect`. Mirrors the stub already added to the slot hit-detection mock. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
1 parent a8c3cda commit 6946098

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/lib/litegraph/src/LGraphCanvas.ghost.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ vi.mock('@/renderer/core/layout/store/layoutStore', () => ({
1414
querySlotAtPoint: vi.fn(),
1515
queryRerouteAtPoint: vi.fn(),
1616
getNodeLayoutRef: vi.fn(() => ({ value: null })),
17+
readNodeRect: vi.fn(() => false),
1718
getSlotLayout: vi.fn(),
1819
setSource: vi.fn(),
1920
setActor: vi.fn()

0 commit comments

Comments
 (0)