Course lesson
We can add accessibility testing to our jest unit tests with jest-axe which gives us:
We can add accessibility testing to our jest unit tests with jest-axe which gives us:
Here we'll see how to use jest-axe with enzyme to render the components for jest-axe to audit for accessibility.
Enzyme is a JavaScript Testing utility for React that makes it easier to test your React Components' output. You can also manipulate, traverse, and in some ways simulate runtime given the output.
Course lesson
We can add accessibility testing to our jest unit tests with jest-axe which gives us: