11# Disallow alias methods (` no-alias-methods ` )
22
3- 💼 This rule is enabled in the following
4- [ configs] ( https://github.com/jest-community/eslint-plugin-jest/blob/main/README.md#shareable-configurations ) :
5- ` all ` , ` recommended ` .
3+ 💼⚠️ This rule is enabled in the ✅ ` recommended `
4+ [ config] ( https://github.com/jest-community/eslint-plugin-jest/blob/main/README.md#shareable-configurations ) .
5+ This rule _ warns_ in the 🎨 ` style `
6+ [ config] ( https://github.com/jest-community/eslint-plugin-jest/blob/main/README.md#shareable-configurations ) .
67
7- 🔧 This rule is automatically fixable using the ` --fix `
8- [ option] ( https://eslint.org/docs/latest/user-guide/command-line-interface#--fix )
9- on the command line.
8+ 🔧 This rule is automatically fixable by the
9+ [ ` --fix ` CLI option] ( https://eslint.org/docs/latest/user-guide/command-line-interface#--fix ) .
1010
11- <!-- end rule header -->
11+ <!-- end auto-generated rule header -->
1212
1313> These aliases are going to be removed in the next major version of Jest - see
14- > https://github.com/facebook/jest/issues/13164 for more
14+ > < https://github.com/facebook/jest/issues/13164 > for more
1515
1616Several Jest methods have alias names, such as ` toThrow ` having the alias of
1717` toThrowError ` . This rule ensures that only the canonical name as used in the
@@ -24,8 +24,6 @@ method names used.
2424This rule triggers a warning if the alias name, rather than the canonical name,
2525of a method is used.
2626
27- ### Default configuration
28-
2927The following patterns are considered warnings:
3028
3129``` js
0 commit comments