jest/valid-expect-in-promise
eslint-plugin-jest
No autofixRecommended
eslint.config.js
import jest from "eslint-plugin-jest";
export default [
{
plugins: { jest },
rules: {
"jest/valid-expect-in-promise": "error",
},
},
];Require promises that have expectations in their chain to be valid
No code example for this rule
The linters' documentation does not include one we could extract.
jest/valid-expect-in-promise
eslint-plugin-jest
import jest from "eslint-plugin-jest";
export default [
{
plugins: { jest },
rules: {
"jest/valid-expect-in-promise": "error",
},
},
];jest/valid-expect-in-promise
jest plugin · correctness
{
"plugins": [
"jest"
],
"rules": {
"jest/valid-expect-in-promise": "error"
}
}Biome does not have this rule.
Require promises that have expectations in their chain to be valid
Disallow string interpolation inside snapshots
Disallow use of deprecated functions