jest/no-deprecated-functions
eslint-plugin-jest
Safe autofixRecommended
eslint.config.js
import jest from "eslint-plugin-jest";
export default [
{
plugins: { jest },
rules: {
"jest/no-deprecated-functions": "error",
},
},
];jest.resetModuleRegistry // since Jest 15
jest.addMatchers // since Jest 17The documentation shows no correct example for this rule.
Examples from the Oxlint documentation.
jest/no-deprecated-functions
eslint-plugin-jest
import jest from "eslint-plugin-jest";
export default [
{
plugins: { jest },
rules: {
"jest/no-deprecated-functions": "error",
},
},
];jest/no-deprecated-functions
jest plugin · style
{
"plugins": [
"jest"
],
"rules": {
"jest/no-deprecated-functions": "error"
}
}Biome does not have this rule.
Disallow string interpolation inside snapshots