Skip to content

test(hooks): add test coverage for legacy-plugin-toast hook#4520

Open
Hungdoan565 wants to merge 2 commits into
code-yeongyu:devfrom
Hungdoan565:test/legacy-plugin-toast-hook-coverage
Open

test(hooks): add test coverage for legacy-plugin-toast hook#4520
Hungdoan565 wants to merge 2 commits into
code-yeongyu:devfrom
Hungdoan565:test/legacy-plugin-toast-hook-coverage

Conversation

@Hungdoan565

@Hungdoan565 Hungdoan565 commented May 26, 2026

Copy link
Copy Markdown
Contributor

Add 9 tests for the legacy-plugin-toast hook covering:

  • Toast display on plugin detection
  • Log calls for migration guidance
  • showToast rejection handling
  • Multiple plugin detection
  • Disabled hook behavior

Summary by cubic

Add 9 unit tests for the legacy-plugin-toast hook to validate toast display, migration success/failure logging, showToast rejection handling, multiple legacy plugin detection, and disabled-hook behavior. Increases coverage and guards against regressions during session startup, and syncs platform binary versions in bun.lock to 4.5.1 to match package.json.

Written for commit 95d814b. Summary will update on new commits. Review in cubic

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