We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
vitest/expect-expect
In 1.1.18 of @vitest/eslint-plugin, there seems to be a regression in the vitest/expect-expect rule, which doesn't seem present in 1.1.17 or lower.
1.1.18
@vitest/eslint-plugin
1.1.17
Go to https://stackblitz.com/edit/vitejs-vite-spv6ulzt?file=package.json Run npm run lint in console
npm run lint
You see 8:38 error Test has no assertions vitest/expect-expect, whereas an assertion is present.
8:38 error Test has no assertions vitest/expect-expect
TypeScript 5.7 ESLint 9.17.0 typescript-eslint 8.18.1
The text was updated successfully, but these errors were encountered:
@y-hsgw could you check your changes in #600? I think there is a bug around this diff https://github.com/vitest-dev/eslint-plugin-vitest/pull/600/files#diff-5e10d81f15e90dc8a24d75b57d5f24879b3b80a6eec3adb8ae699e8bb1030f0eL255-L256
The same changes also probably caused #601
Do you mind having a look?
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
In
1.1.18
of@vitest/eslint-plugin
, there seems to be a regression in thevitest/expect-expect
rule, which doesn't seem present in1.1.17
or lower.Reproduction
Go to https://stackblitz.com/edit/vitejs-vite-spv6ulzt?file=package.json
Run
npm run lint
in consoleYou see
8:38 error Test has no assertions vitest/expect-expect
, whereas an assertion is present.Environment
TypeScript 5.7
ESLint 9.17.0
typescript-eslint 8.18.1
The text was updated successfully, but these errors were encountered: