Skip to content

Commit fd76403

Browse files
committed
docs(skills): testing.md Pattern 5 registers the text renderer it renders (objectui#9380, patch round 1)
Copied verbatim, the corrected fence still threw for a reader whose setup registers nothing: `Unknown component type: text` on both tests. The fence now carries the one side-effect import that registers the renderers, spelled the way page-builder.md spells its plugin imports. Nothing else in the fence moves. Measured on the current renderer (vitest `dom` project, light setup that registers nothing): the fence byte-identical to the published one passes both tests; the same file minus this import fails both with `Unknown component type:` — the control. Scratch files deleted before commit. Line readings: `testing.md` 364 -> 370 (+6); `skills/**/SKILL.md` + this guide 501 -> 507 (+6), exactly the PR budget. Claude-Session: https://claude.ai/code/session_01EBx9rvB7dufCz4at53x35U Co-authored-by: Claude <noreply@anthropic.com>
1 parent d1fda66 commit fd76403

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎skills/objectui/guides/testing.md‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,7 @@ Expression roots are the keys of the `scope` a host publishes through `Predicate
134134
import { describe, it, expect } from 'vitest';
135135
import { render, screen } from '@testing-library/react';
136136
import { PredicateScopeProvider, SchemaRenderer } from '@object-ui/react';
137+
import '@object-ui/components';
137138

138139
describe('SchemaRenderer', () => {
139140
const scope = {

0 commit comments

Comments
 (0)