Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

toHaveViolations appears not to be exported #13

Open
terrymun opened this issue May 8, 2024 · 4 comments
Open

toHaveViolations appears not to be exported #13

terrymun opened this issue May 8, 2024 · 4 comments

Comments

@terrymun
Copy link

terrymun commented May 8, 2024

When following the setup guide, I've attempted to add the following line to a unit test file as a proof-of-concept test:

import { axe, toHaveNoViolations } from 'vitest-axe';

But my IDE complains that toHaveNoViolations is not exported by vitest-axe:

Screenshot 2024-05-08 at 08 55 51

@igas
Copy link

igas commented May 19, 2024

Readme is based on prerelease version, but even in v1.0.0-pre.3 it's import { toHaveNoViolations } from "vitest-axe/matchers".

@terrymun
Copy link
Author

terrymun commented May 19, 2024

@igas But the problem is that vitest-axe/matchers only exports toHaveNoViolations as a type.

Screenshot 2024-05-19 at 23 13 57

@igas
Copy link

igas commented May 20, 2024

As I mentioned, if you want to use it, you need to install it pre-release.

@ekrata-main
Copy link

fixed by using the prelease version: npm install --save-dev [email protected]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants