Accessibility · Middle · Question 67 of 75
What is a limit of jest-axe in jsdom?
- 1It can only be run on a production build of the app
- 2Without layout, it can't check things such as colour contrast
- 3It only works with class components and older React versions
Show the answer
Correct answer: Without layout, it can't check things such as colour contrast
Explanation
jsdom doesn't render CSS. Use a real browser for contrast and focus visibility.