Closed hoaannguyen07 closed 8 months ago
Same issue here. Without the custom messaging, the output creates a less than helpful developer experience.
There are no restrictions in what you can pass to the underlying axe-core library in this package, I think your issue is one with the third-party Typescript interfaces that I do not maintain so you should find where that is and contribute there.
When defining customized checks and rules, I cannot define metadata for checks (includes impact & messages for pass/fail) and rules (includes description, help, etc.), which can be defined when using straight from the 'axe-core' package. These messages are very helpful for debugging and would be a great help to developers.
Jest-Core's Check Interface:
Axe-Core's Check Interface:
Jest-Core's Rule Interface:
Axe-Core's Rule Interface: