Skip to content

feat: add active descendant focus matchers#725

Draft
gnapse wants to merge 1 commit into
mainfrom
feat/active-descendant-focus-matchers
Draft

feat: add active descendant focus matchers#725
gnapse wants to merge 1 commit into
mainfrom
feat/active-descendant-focus-matchers

Conversation

@gnapse

@gnapse gnapse commented Jun 10, 2026

Copy link
Copy Markdown
Member

Summary

  • add toHaveActiveDescendant and toHaveVirtualFocus matchers for aria-activedescendant focus patterns
  • document both matchers and add TypeScript declarations
  • cover runtime behavior, stale references, duplicate ids, and type usage

Test plan

  • npm test -- --watch=false --runInBand --runTestsByPath src/tests/to-have-active-descendant.js
  • npm run lint
  • npm run test:types
  • env FORCE_COLOR=true npm test -- --watch=false --runInBand
  • pre-commit validate hook

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