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

False positive: Expect has unknown modifier (vitest/valid-expect) #507

Open
alexkiro opened this issue Aug 14, 2024 · 1 comment
Open

False positive: Expect has unknown modifier (vitest/valid-expect) #507

alexkiro opened this issue Aug 14, 2024 · 1 comment

Comments

@alexkiro
Copy link

It seems this is wrongly marked as incorect:

  expect("foo bar").to.include("foo");

The rule is incorrectly triggered, as this is in fact valid :

  6:3   error  Expect has unknown modifier                 vitest/valid-expect
@AllanOricil
Copy link

I have the same issue for expect().to.have.property()

Tests pass without any issues. However, this plugin doesnt like it
image

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

2 participants