Skip to content

test: cover ToastProvider behavior#36

Closed
xx7412421-cloud wants to merge 1 commit into
StableRoute-Org:mainfrom
xx7412421-cloud:patch-3
Closed

test: cover ToastProvider behavior#36
xx7412421-cloud wants to merge 1 commit into
StableRoute-Org:mainfrom
xx7412421-cloud:patch-3

Conversation

@xx7412421-cloud

Copy link
Copy Markdown

Closes #14

Summary

  • add ToastProvider harness coverage for info/status and error/alert roles
  • verify the polite live-region container and 4s auto-dismiss behavior with fake timers
  • cover multiple queued toasts and the useToast provider guard

Validation

  • npm test -- ToastProvider.test.tsx --runInBand
  • npm run lint
  • npm test -- --coverage --runInBand

Covers info/status, error/alert, queued toast, auto-dismiss, and missing-provider behavior.

Validation: npm test -- ToastProvider.test.tsx --runInBand; npm run lint; npm test -- --coverage --runInBand.
@mikewheeleer

Copy link
Copy Markdown
Contributor

appreciate the PR @xx7412421-cloud 🙏 heads up though — #14 wasn't assigned to you, and we merge from the assigned contributor to keep it fair. please claim an unassigned issue first, then PR. closing for now 🙌

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.

Add tests for the ToastProvider context, auto-dismiss, and error roles

2 participants