jest/no-test-prefixes
eslint-plugin-jest
Safe autofixRecommended
eslint.config.js
import jest from "eslint-plugin-jest";
export default [
{
plugins: { jest },
rules: {
"jest/no-test-prefixes": "error",
},
},
];No code example for this rule
The linters' documentation does not include one we could extract.
jest/no-test-prefixes
eslint-plugin-jest
import jest from "eslint-plugin-jest";
export default [
{
plugins: { jest },
rules: {
"jest/no-test-prefixes": "error",
},
},
];jest/no-test-prefixes
jest plugin · style
{
"plugins": [
"jest"
],
"rules": {
"jest/no-test-prefixes": "error"
}
}Biome does not have this rule.
Disallow using the f and x prefixes in favour of .only and .skip
Disallow string interpolation inside snapshots
Require promises that have expectations in their chain to be valid
Disallow use of deprecated functions