Skip to content

feat(core): add board event observer - #1163

Open
pubuzhixing8 wants to merge 1 commit into
developfrom
xingxing/add-board-event-observer
Open

feat(core): add board event observer#1163
pubuzhixing8 wants to merge 1 commit into
developfrom
xingxing/add-board-event-observer

Conversation

@pubuzhixing8

Copy link
Copy Markdown
Collaborator

Summary

  • add a framework-independent createBoardEventObserver() testing helper
  • record selected downstream board events while preserving the original handlers
  • expose call clearing and document the required plugin ordering
  • export the helper from core testing and add a patch changeset

Why

Drawnix plugin tests need to verify that a plugin delegates an event downstream, not only that no board state changed. Keeping the observer in core makes that assertion reusable without coupling it to Jasmine, Vitest, or Jest.

Validation

  • built @plait/core successfully with Angular package build
  • ran the core TypeScript check successfully
  • verified formatting with Prettier

No fixture-specific tests were added, per the requested scope.

@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying plait with  Cloudflare Pages  Cloudflare Pages

Latest commit: fb7e9bf
Status: ✅  Deploy successful!
Preview URL: https://d79f4613.plait.pages.dev
Branch Preview URL: https://xingxing-add-board-event-obs.plait.pages.dev

View logs

@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying plait-docs with  Cloudflare Pages  Cloudflare Pages

Latest commit: fb7e9bf
Status: ✅  Deploy successful!
Preview URL: https://97afbd4c.plait-docs.pages.dev
Branch Preview URL: https://xingxing-add-board-event-obs.plait-docs.pages.dev

View logs

@pubuzhixing8
pubuzhixing8 marked this pull request as ready for review August 2, 2026 13:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant