chai-enzyme-axe
A chai assertion that runs axe-core on an enzyme wrapper object to test for a11y violations.
Installation
npm install chai-enzyme-axe
Follow the instructions on using axe-core.
Usage
chai
Component { return <div> <label for="name">Name</label> <input type="text" id="name" /> </div> } const wrapper = wrappershouldbe