toHaveViolations appears not to be exported
Opened this issue ยท 4 comments
terrymun commented
igas commented
Readme is based on prerelease version, but even in v1.0.0-pre.3
it's import { toHaveNoViolations } from "vitest-axe/matchers"
.
terrymun commented
@igas But the problem is that vitest-axe/matchers
only exports toHaveNoViolations
as a type.
igas commented
As I mentioned, if you want to use it, you need to install it pre-release.
ekrata-main commented
fixed by using the prelease version: npm install --save-dev vitest-axe@v1.0.0-pre.3