Test for text with recursive atom type - #28013
Conversation
|
Hi! Thank you for opening this PR. Want me to review it? Based on the diff (33 lines, 1 files), I've queued these reviewers:
How this works
|
There was a problem hiding this comment.
Pull request overview
Adds a regression test to ensure FormattedText.createSchema supports additional atom schemas that are recursively defined (i.e., an atom can contain nested formatted text of the same schema), validating behavior for richer inline objects that embed formatted text.
Changes:
- Add a new unit test that defines a recursive
FormattedText.TextAtomwhose schema references the formatted-text schema that includes it. - Validate the recursive schema at compile time via
ValidateRecursiveSchema. - Exercise runtime behavior by inserting a recursive atom and asserting correct
fullString()and extracted atom content.
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Bundle size comparisonBase commit: Notable changesNo bundles changed by ≥ 500 bytes parsed. Per-bundle deltas
|
## Description Test for text with recursive atom type ## Reviewer Guidance The review process is outlined in [the pull request guidelines](../docs/content/Contributing/PR-Guidelines.md#guidelines).
Description
Test for text with recursive atom type
Reviewer Guidance
The review process is outlined in the pull request guidelines.