jest/no-disabled-tests
eslint-plugin-jest
No autofixRecommended
eslint.config.js
import jest from "eslint-plugin-jest";
export default [
{
plugins: { jest },
rules: {
"jest/no-disabled-tests": "error",
},
},
];describe.skip("test", () => {});test.skip("test", () => {});test.fixme("needs fixing", async () => {});The documentation shows no correct example for this rule.
Examples from the Biome documentation.
jest/no-disabled-tests
eslint-plugin-jest
import jest from "eslint-plugin-jest";
export default [
{
plugins: { jest },
rules: {
"jest/no-disabled-tests": "error",
},
},
];jest/no-disabled-tests
jest plugin · correctness
{
"plugins": [
"jest"
],
"rules": {
"jest/no-disabled-tests": "error"
}
}suspicious/noSkippedTests
suspicious · since 1.6.0
{
"linter": {
"rules": {
"suspicious": {
"noSkippedTests": "error"
}
}
}
}Enforce assertion to be made in a test body
Disallow calling expect conditionally
Disallow using a callback in asynchronous tests and hooks