You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Run npm run lint in the terminal and you will see the following output:
/home/projects/vitest-dev-vitest-tyuckt/src/basic.test.ts
8:39 error Promise returned infunctionargument where a void return was expected @typescript-eslint/no-misused-promises
Describe the bug
A
test.each
using an async function will throw a TypeScript error if the ESLint rule @typescript-eslint/no-misused-promises is enabled.The doesn't happen with a simple
test
.Reproduction
https://stackblitz.com/edit/vitest-dev-vitest-tyuckt?file=src/basic.test.ts
Run
npm run lint
in the terminal and you will see the following output:System Info
Used Package Manager
npm
Validations
The text was updated successfully, but these errors were encountered: