@@ -210,58 +210,59 @@ set to warn in.\
210
210
π‘ Manually fixable by [ editor suggestions] ( https://eslint.org/docs/developer-guide/working-with-rules#providing-suggestions ) .\
211
211
β Deprecated.
212
212
213
- | NameΒ Β Β Β Β Β Β Β Β Β Β Β Β Β Β Β Β Β Β Β Β Β Β Β Β | Description | πΌ | β οΈ | π§ | π‘ | β |
214
- | :--------------------------------------------------------------------------- | :------------------------------------------------------------------ | :-- | :-- | :-- | :-- | :-- |
215
- | [ consistent-test-it] ( docs/rules/consistent-test-it.md ) | Enforce ` test ` and ` it ` usage conventions | | | π§ | | |
216
- | [ expect-expect] ( docs/rules/expect-expect.md ) | Enforce assertion to be made in a test body | | β
| | | |
217
- | [ max-expects] ( docs/rules/max-expects.md ) | Enforces a maximum number assertion calls in a test body | | | | | |
218
- | [ max-nested-describe] ( docs/rules/max-nested-describe.md ) | Enforces a maximum depth to nested describe calls | | | | | |
219
- | [ no-alias-methods] ( docs/rules/no-alias-methods.md ) | Disallow alias methods | β
| π¨ | π§ | | |
220
- | [ no-commented-out-tests] ( docs/rules/no-commented-out-tests.md ) | Disallow commented out tests | | β
| | | |
221
- | [ no-conditional-expect] ( docs/rules/no-conditional-expect.md ) | Disallow calling ` expect ` conditionally | β
| | | | |
222
- | [ no-conditional-in-test] ( docs/rules/no-conditional-in-test.md ) | Disallow conditional logic in tests | | | | | |
223
- | [ no-deprecated-functions] ( docs/rules/no-deprecated-functions.md ) | Disallow use of deprecated functions | β
| | π§ | | |
224
- | [ no-disabled-tests] ( docs/rules/no-disabled-tests.md ) | Disallow disabled tests | | β
| | | |
225
- | [ no-done-callback] ( docs/rules/no-done-callback.md ) | Disallow using a callback in asynchronous tests and hooks | β
| | | π‘ | |
226
- | [ no-duplicate-hooks] ( docs/rules/no-duplicate-hooks.md ) | Disallow duplicate setup and teardown hooks | | | | | |
227
- | [ no-export] ( docs/rules/no-export.md ) | Disallow using ` exports ` in files containing tests | β
| | | | |
228
- | [ no-focused-tests] ( docs/rules/no-focused-tests.md ) | Disallow focused tests | β
| | | π‘ | |
229
- | [ no-hooks] ( docs/rules/no-hooks.md ) | Disallow setup and teardown hooks | | | | | |
230
- | [ no-identical-title] ( docs/rules/no-identical-title.md ) | Disallow identical titles | β
| | | | |
231
- | [ no-if] ( docs/rules/no-if.md ) | Disallow conditional logic | | | | | β |
232
- | [ no-interpolation-in-snapshots] ( docs/rules/no-interpolation-in-snapshots.md ) | Disallow string interpolation inside snapshots | β
| | | | |
233
- | [ no-jasmine-globals] ( docs/rules/no-jasmine-globals.md ) | Disallow Jasmine globals | β
| | π§ | | |
234
- | [ no-large-snapshots] ( docs/rules/no-large-snapshots.md ) | Disallow large snapshots | | | | | |
235
- | [ no-mocks-import] ( docs/rules/no-mocks-import.md ) | Disallow manually importing from ` __mocks__ ` | β
| | | | |
236
- | [ no-restricted-jest-methods] ( docs/rules/no-restricted-jest-methods.md ) | Disallow specific ` jest. ` methods | | | | | |
237
- | [ no-restricted-matchers] ( docs/rules/no-restricted-matchers.md ) | Disallow specific matchers & modifiers | | | | | |
238
- | [ no-standalone-expect] ( docs/rules/no-standalone-expect.md ) | Disallow using ` expect ` outside of ` it ` or ` test ` blocks | β
| | | | |
239
- | [ no-test-prefixes] ( docs/rules/no-test-prefixes.md ) | Require using ` .only ` and ` .skip ` over ` f ` and ` x ` | β
| | π§ | | |
240
- | [ no-test-return-statement] ( docs/rules/no-test-return-statement.md ) | Disallow explicitly returning from tests | | | | | |
241
- | [ prefer-called-with] ( docs/rules/prefer-called-with.md ) | Suggest using ` toBeCalledWith() ` or ` toHaveBeenCalledWith() ` | | | | | |
242
- | [ prefer-comparison-matcher] ( docs/rules/prefer-comparison-matcher.md ) | Suggest using the built-in comparison matchers | | | π§ | | |
243
- | [ prefer-each] ( docs/rules/prefer-each.md ) | Prefer using ` .each ` rather than manual loops | | | | | |
244
- | [ prefer-equality-matcher] ( docs/rules/prefer-equality-matcher.md ) | Suggest using the built-in equality matchers | | | | π‘ | |
245
- | [ prefer-expect-assertions] ( docs/rules/prefer-expect-assertions.md ) | Suggest using ` expect.assertions() ` OR ` expect.hasAssertions() ` | | | | π‘ | |
246
- | [ prefer-expect-resolves] ( docs/rules/prefer-expect-resolves.md ) | Prefer ` await expect(...).resolves ` over ` expect(await ...) ` syntax | | | π§ | | |
247
- | [ prefer-hooks-in-order] ( docs/rules/prefer-hooks-in-order.md ) | Prefer having hooks in a consistent order | | | | | |
248
- | [ prefer-hooks-on-top] ( docs/rules/prefer-hooks-on-top.md ) | Suggest having hooks before any test cases | | | | | |
249
- | [ prefer-lowercase-title] ( docs/rules/prefer-lowercase-title.md ) | Enforce lowercase test names | | | π§ | | |
250
- | [ prefer-mock-promise-shorthand] ( docs/rules/prefer-mock-promise-shorthand.md ) | Prefer mock resolved/rejected shorthands for promises | | | π§ | | |
251
- | [ prefer-snapshot-hint] ( docs/rules/prefer-snapshot-hint.md ) | Prefer including a hint with external snapshots | | | | | |
252
- | [ prefer-spy-on] ( docs/rules/prefer-spy-on.md ) | Suggest using ` jest.spyOn() ` | | | π§ | | |
253
- | [ prefer-strict-equal] ( docs/rules/prefer-strict-equal.md ) | Suggest using ` toStrictEqual() ` | | | | π‘ | |
254
- | [ prefer-to-be] ( docs/rules/prefer-to-be.md ) | Suggest using ` toBe() ` for primitive literals | π¨ | | π§ | | |
255
- | [ prefer-to-contain] ( docs/rules/prefer-to-contain.md ) | Suggest using ` toContain() ` | π¨ | | π§ | | |
256
- | [ prefer-to-have-length] ( docs/rules/prefer-to-have-length.md ) | Suggest using ` toHaveLength() ` | π¨ | | π§ | | |
257
- | [ prefer-todo] ( docs/rules/prefer-todo.md ) | Suggest using ` test.todo ` | | | π§ | | |
258
- | [ require-hook] ( docs/rules/require-hook.md ) | Require setup and teardown code to be within a hook | | | | | |
259
- | [ require-to-throw-message] ( docs/rules/require-to-throw-message.md ) | Require a message for ` toThrow() ` | | | | | |
260
- | [ require-top-level-describe] ( docs/rules/require-top-level-describe.md ) | Require test cases and hooks to be inside a ` describe ` block | | | | | |
261
- | [ valid-describe-callback] ( docs/rules/valid-describe-callback.md ) | Enforce valid ` describe() ` callback | β
| | | | |
262
- | [ valid-expect] ( docs/rules/valid-expect.md ) | Enforce valid ` expect() ` usage | β
| | | | |
263
- | [ valid-expect-in-promise] ( docs/rules/valid-expect-in-promise.md ) | Require promises that have expectations in their chain to be valid | β
| | | | |
264
- | [ valid-title] ( docs/rules/valid-title.md ) | Enforce valid titles | β
| | π§ | | |
213
+ | NameΒ Β Β Β Β Β Β Β Β Β Β Β Β Β Β Β Β Β Β Β Β Β Β Β Β | Description | πΌ | β οΈ | π§ | π‘ | β |
214
+ | :--------------------------------------------------------------------------- | :------------------------------------------------------------------------ | :-- | :-- | :-- | :-- | :-- |
215
+ | [ consistent-test-it] ( docs/rules/consistent-test-it.md ) | Enforce ` test ` and ` it ` usage conventions | | | π§ | | |
216
+ | [ expect-expect] ( docs/rules/expect-expect.md ) | Enforce assertion to be made in a test body | | β
| | | |
217
+ | [ max-expects] ( docs/rules/max-expects.md ) | Enforces a maximum number assertion calls in a test body | | | | | |
218
+ | [ max-nested-describe] ( docs/rules/max-nested-describe.md ) | Enforces a maximum depth to nested describe calls | | | | | |
219
+ | [ no-alias-methods] ( docs/rules/no-alias-methods.md ) | Disallow alias methods | β
| π¨ | π§ | | |
220
+ | [ no-commented-out-tests] ( docs/rules/no-commented-out-tests.md ) | Disallow commented out tests | | β
| | | |
221
+ | [ no-conditional-expect] ( docs/rules/no-conditional-expect.md ) | Disallow calling ` expect ` conditionally | β
| | | | |
222
+ | [ no-conditional-in-test] ( docs/rules/no-conditional-in-test.md ) | Disallow conditional logic in tests | | | | | |
223
+ | [ no-deprecated-functions] ( docs/rules/no-deprecated-functions.md ) | Disallow use of deprecated functions | β
| | π§ | | |
224
+ | [ no-disabled-tests] ( docs/rules/no-disabled-tests.md ) | Disallow disabled tests | | β
| | | |
225
+ | [ no-done-callback] ( docs/rules/no-done-callback.md ) | Disallow using a callback in asynchronous tests and hooks | β
| | | π‘ | |
226
+ | [ no-duplicate-hooks] ( docs/rules/no-duplicate-hooks.md ) | Disallow duplicate setup and teardown hooks | | | | | |
227
+ | [ no-export] ( docs/rules/no-export.md ) | Disallow using ` exports ` in files containing tests | β
| | | | |
228
+ | [ no-focused-tests] ( docs/rules/no-focused-tests.md ) | Disallow focused tests | β
| | | π‘ | |
229
+ | [ no-hooks] ( docs/rules/no-hooks.md ) | Disallow setup and teardown hooks | | | | | |
230
+ | [ no-identical-title] ( docs/rules/no-identical-title.md ) | Disallow identical titles | β
| | | | |
231
+ | [ no-if] ( docs/rules/no-if.md ) | Disallow conditional logic | | | | | β |
232
+ | [ no-interpolation-in-snapshots] ( docs/rules/no-interpolation-in-snapshots.md ) | Disallow string interpolation inside snapshots | β
| | | | |
233
+ | [ no-jasmine-globals] ( docs/rules/no-jasmine-globals.md ) | Disallow Jasmine globals | β
| | π§ | | |
234
+ | [ no-large-snapshots] ( docs/rules/no-large-snapshots.md ) | Disallow large snapshots | | | | | |
235
+ | [ no-mocks-import] ( docs/rules/no-mocks-import.md ) | Disallow manually importing from ` __mocks__ ` | β
| | | | |
236
+ | [ no-restricted-jest-methods] ( docs/rules/no-restricted-jest-methods.md ) | Disallow specific ` jest. ` methods | | | | | |
237
+ | [ no-restricted-matchers] ( docs/rules/no-restricted-matchers.md ) | Disallow specific matchers & modifiers | | | | | |
238
+ | [ no-standalone-expect] ( docs/rules/no-standalone-expect.md ) | Disallow using ` expect ` outside of ` it ` or ` test ` blocks | β
| | | | |
239
+ | [ no-test-prefixes] ( docs/rules/no-test-prefixes.md ) | Require using ` .only ` and ` .skip ` over ` f ` and ` x ` | β
| | π§ | | |
240
+ | [ no-test-return-statement] ( docs/rules/no-test-return-statement.md ) | Disallow explicitly returning from tests | | | | | |
241
+ | [ no-untyped-mock-factory] ( docs/rules/no-untyped-mock-factory.md ) | Disallow using ` jest.mock() ` factories without an explicit type parameter | | | π§ | | |
242
+ | [ prefer-called-with] ( docs/rules/prefer-called-with.md ) | Suggest using ` toBeCalledWith() ` or ` toHaveBeenCalledWith() ` | | | | | |
243
+ | [ prefer-comparison-matcher] ( docs/rules/prefer-comparison-matcher.md ) | Suggest using the built-in comparison matchers | | | π§ | | |
244
+ | [ prefer-each] ( docs/rules/prefer-each.md ) | Prefer using ` .each ` rather than manual loops | | | | | |
245
+ | [ prefer-equality-matcher] ( docs/rules/prefer-equality-matcher.md ) | Suggest using the built-in equality matchers | | | | π‘ | |
246
+ | [ prefer-expect-assertions] ( docs/rules/prefer-expect-assertions.md ) | Suggest using ` expect.assertions() ` OR ` expect.hasAssertions() ` | | | | π‘ | |
247
+ | [ prefer-expect-resolves] ( docs/rules/prefer-expect-resolves.md ) | Prefer ` await expect(...).resolves ` over ` expect(await ...) ` syntax | | | π§ | | |
248
+ | [ prefer-hooks-in-order] ( docs/rules/prefer-hooks-in-order.md ) | Prefer having hooks in a consistent order | | | | | |
249
+ | [ prefer-hooks-on-top] ( docs/rules/prefer-hooks-on-top.md ) | Suggest having hooks before any test cases | | | | | |
250
+ | [ prefer-lowercase-title] ( docs/rules/prefer-lowercase-title.md ) | Enforce lowercase test names | | | π§ | | |
251
+ | [ prefer-mock-promise-shorthand] ( docs/rules/prefer-mock-promise-shorthand.md ) | Prefer mock resolved/rejected shorthands for promises | | | π§ | | |
252
+ | [ prefer-snapshot-hint] ( docs/rules/prefer-snapshot-hint.md ) | Prefer including a hint with external snapshots | | | | | |
253
+ | [ prefer-spy-on] ( docs/rules/prefer-spy-on.md ) | Suggest using ` jest.spyOn() ` | | | π§ | | |
254
+ | [ prefer-strict-equal] ( docs/rules/prefer-strict-equal.md ) | Suggest using ` toStrictEqual() ` | | | | π‘ | |
255
+ | [ prefer-to-be] ( docs/rules/prefer-to-be.md ) | Suggest using ` toBe() ` for primitive literals | π¨ | | π§ | | |
256
+ | [ prefer-to-contain] ( docs/rules/prefer-to-contain.md ) | Suggest using ` toContain() ` | π¨ | | π§ | | |
257
+ | [ prefer-to-have-length] ( docs/rules/prefer-to-have-length.md ) | Suggest using ` toHaveLength() ` | π¨ | | π§ | | |
258
+ | [ prefer-todo] ( docs/rules/prefer-todo.md ) | Suggest using ` test.todo ` | | | π§ | | |
259
+ | [ require-hook] ( docs/rules/require-hook.md ) | Require setup and teardown code to be within a hook | | | | | |
260
+ | [ require-to-throw-message] ( docs/rules/require-to-throw-message.md ) | Require a message for ` toThrow() ` | | | | | |
261
+ | [ require-top-level-describe] ( docs/rules/require-top-level-describe.md ) | Require test cases and hooks to be inside a ` describe ` block | | | | | |
262
+ | [ valid-describe-callback] ( docs/rules/valid-describe-callback.md ) | Enforce valid ` describe() ` callback | β
| | | | |
263
+ | [ valid-expect] ( docs/rules/valid-expect.md ) | Enforce valid ` expect() ` usage | β
| | | | |
264
+ | [ valid-expect-in-promise] ( docs/rules/valid-expect-in-promise.md ) | Require promises that have expectations in their chain to be valid | β
| | | | |
265
+ | [ valid-title] ( docs/rules/valid-title.md ) | Enforce valid titles | β
| | π§ | | |
265
266
266
267
### Requires Type Checking
267
268
0 commit comments