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
latest
pnpm dlx oxlint@latest --import-plugin --promise-plugin --vitest-plugin --fix-suggestions --tsconfig=../../tsconfig.json -D vitest/valid-expect
.oxlint.json
none, just pure CLI
I am getting errors on all the expect calls where I am using a second argument for the error message, like so:
× eslint-plugin-vitest(valid-expect): Expect requires at least 1 argument ╭─[src/utils/text.test.ts:30:3] 29 │ ])(`counts words correctly: %s`, (input: string, expected: number, lang: string = 'en') => { 30 │ expect(getWordCount(input, lang), `${input} (${lang})`).toEqual(expected); · ─────────────────────────────────────────────────────── 31 │ }); ╰──── help: Add the missing arguments.
I noticed that this only seems to happen that when the first argument is not a variable, but a function call instead.
The text was updated successfully, but these errors were encountered:
Let me take a quick look, it should be quite simple.
Sorry, something went wrong.
shulaoda
Successfully merging a pull request may close this issue.
What version of Oxlint are you using?
latest
What command did you run?
pnpm dlx oxlint@latest --import-plugin --promise-plugin --vitest-plugin --fix-suggestions --tsconfig=../../tsconfig.json -D vitest/valid-expect
What does your
.oxlint.json
config file look like?none, just pure CLI
What happened?
I am getting errors on all the expect calls where I am using a second argument for the error message, like so:
I noticed that this only seems to happen that when the first argument is not a variable, but a function call instead.
The text was updated successfully, but these errors were encountered: