jest/prefer-to-be
eslint-plugin-jest
Safe autofix
eslint.config.js
import jest from "eslint-plugin-jest";
export default [
{
plugins: { jest },
rules: {
"jest/prefer-to-be": "error",
},
},
];No code example for this rule
The linters' documentation does not include one we could extract.
jest/prefer-to-be
eslint-plugin-jest
import jest from "eslint-plugin-jest";
export default [
{
plugins: { jest },
rules: {
"jest/prefer-to-be": "error",
},
},
];jest/prefer-to-be
jest plugin · style
{
"plugins": [
"jest"
],
"rules": {
"jest/prefer-to-be": "error"
}
}Biome does not have this rule.
Enforces a maximum depth to nested describe calls