jest/no-unneeded-async-expect-function
eslint-plugin-jest
Safe autofix
eslint.config.js
import jest from "eslint-plugin-jest";
export default [
{
plugins: { jest },
rules: {
"jest/no-unneeded-async-expect-function": "error",
},
},
];