component-driven / component-driven/cypress-axe
checkA11y() callback won't fire if there are no violations
Open
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 641
- Forks
- 90
- Avg merge
- 6h 8m
- Merged PRs (30d)
- 1
Description
Hi there, I was wondering if there was a way to fire checkA11y()'s callback even though there are no violations, even if violations variable was passed as an empty array.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start in src/index.ts at the checkA11y() implementation around line 80, focusing on how an empty violations array affects callback execution. Confirm the callback runs when there are no violations, including when violations is explicitly empty; the payload does not name a test file to run.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- accessibility, testing
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100