jest/prefer-lowercase-title
eslint-plugin-jest
Safe autofix
eslint.config.js
import jest from "eslint-plugin-jest";
export default [
{
plugins: { jest },
rules: {
"jest/prefer-lowercase-title": "error",
},
},
];The documentation shows no incorrect example for this rule.
describe('Uppercase description');test('Uppercase description');it('Uppercase description');Examples from the ESLint documentation.
No tracked preset enables this rule, so it has no reach yet.
None of the tracked presets enable this rule. Turn it on with the config below.
jest/prefer-lowercase-title
eslint-plugin-jest
import jest from "eslint-plugin-jest";
export default [
{
plugins: { jest },
rules: {
"jest/prefer-lowercase-title": "error",
},
},
];jest/prefer-lowercase-title
jest plugin · style
{
"plugins": [
"jest"
],
"rules": {
"jest/prefer-lowercase-title": "error"
}
}nursery/useLowercaseTestTitle
nursery · since 2.6.0
{
"linter": {
"rules": {
"nursery": {
"useLowercaseTestTitle": "error"
}
}
}
}Suggest having hooks before any test cases
Prefer having hooks in a consistent order