You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/jest.md
+10-10Lines changed: 10 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -33,37 +33,37 @@ Config for projects using **Jest** for testing.
33
33
34
34
> 🔧 Automatically fixable by the [`--fix` CLI option](https://eslint.org/docs/user-guide/command-line-interface#--fix).<br>💡 Manually fixable by [editor suggestions](https://eslint.org/docs/developer-guide/working-with-rules#providing-suggestions).
|[](https://github.com/jest-community/eslint-plugin-jest#readme)|[no-deprecated-functions](https://github.com/jest-community/eslint-plugin-jest/blob/v28.8.0/docs/rules/no-deprecated-functions.md)<br />Disallow use of deprecated functions || 🔧 ||
43
-
|[](https://github.com/jest-community/eslint-plugin-jest#readme)|[no-done-callback](https://github.com/jest-community/eslint-plugin-jest/blob/v28.8.0/docs/rules/no-done-callback.md)<br />Disallow using a callback in asynchronous tests and hooks || 💡 ||
44
-
|[](https://github.com/jest-community/eslint-plugin-jest#readme)|[no-export](https://github.com/jest-community/eslint-plugin-jest/blob/v28.8.0/docs/rules/no-export.md)<br />Disallow using `exports` in files containing tests ||||
|[](https://github.com/jest-community/eslint-plugin-jest#readme)|[no-mocks-import](https://github.com/jest-community/eslint-plugin-jest/blob/v28.8.0/docs/rules/no-mocks-import.md)<br />Disallow manually importing from `__mocks__`||||
50
-
|[](https://github.com/jest-community/eslint-plugin-jest#readme)|[no-standalone-expect](https://github.com/jest-community/eslint-plugin-jest/blob/v28.8.0/docs/rules/no-standalone-expect.md)<br />Disallow using `expect` outside of `it` or `test` blocks ||||
51
43
|[](https://github.com/jest-community/eslint-plugin-jest#readme)|[no-test-prefixes](https://github.com/jest-community/eslint-plugin-jest/blob/v28.8.0/docs/rules/no-test-prefixes.md)<br />Require using `.only` and `.skip` over `f` and `x`|| 🔧 ||
|[](https://github.com/jest-community/eslint-plugin-jest#readme)|[valid-expect-in-promise](https://github.com/jest-community/eslint-plugin-jest/blob/v28.8.0/docs/rules/valid-expect-in-promise.md)<br />Require promises that have expectations in their chain to be valid ||||
|[](https://github.com/jest-community/eslint-plugin-jest#readme)|[consistent-test-it](https://github.com/jest-community/eslint-plugin-jest/blob/v28.8.0/docs/rules/consistent-test-it.md)<br />Enforce `test` and `it` usage conventions || 🔧 ||
62
54
|[](https://github.com/jest-community/eslint-plugin-jest#readme)|[expect-expect](https://github.com/jest-community/eslint-plugin-jest/blob/v28.8.0/docs/rules/expect-expect.md)<br />Enforce assertion to be made in a test body ||||
63
55
|[](https://github.com/jest-community/eslint-plugin-jest#readme)|[max-nested-describe](https://github.com/jest-community/eslint-plugin-jest/blob/v28.8.0/docs/rules/max-nested-describe.md)<br />Enforces a maximum depth to nested describe calls | <details><summary>max: 2</summary><prelang="json"><code>{ "max": 2 }</code></pre></details> |||
56
+
|[](https://github.com/jest-community/eslint-plugin-jest#readme)|[no-alias-methods](https://github.com/jest-community/eslint-plugin-jest/blob/v28.8.0/docs/rules/no-alias-methods.md)<br />Disallow alias methods || 🔧 ||
64
57
|[](https://github.com/jest-community/eslint-plugin-jest#readme)|[no-commented-out-tests](https://github.com/jest-community/eslint-plugin-jest/blob/v28.8.0/docs/rules/no-commented-out-tests.md)<br />Disallow commented out tests ||||
|[](https://github.com/jest-community/eslint-plugin-jest#readme)|[no-deprecated-functions](https://github.com/jest-community/eslint-plugin-jest/blob/v28.8.0/docs/rules/no-deprecated-functions.md)<br />Disallow use of deprecated functions || 🔧 ||
|[](https://github.com/jest-community/eslint-plugin-jest#readme)|[no-done-callback](https://github.com/jest-community/eslint-plugin-jest/blob/v28.8.0/docs/rules/no-done-callback.md)<br />Disallow using a callback in asynchronous tests and hooks || 💡 ||
66
62
|[](https://github.com/jest-community/eslint-plugin-jest#readme)|[no-duplicate-hooks](https://github.com/jest-community/eslint-plugin-jest/blob/v28.8.0/docs/rules/no-duplicate-hooks.md)<br />Disallow duplicate setup and teardown hooks ||||
63
+
|[](https://github.com/jest-community/eslint-plugin-jest#readme)|[no-export](https://github.com/jest-community/eslint-plugin-jest/blob/v28.8.0/docs/rules/no-export.md)<br />Disallow using `exports` in files containing tests ||||
|[](https://github.com/jest-community/eslint-plugin-jest#readme)|[no-mocks-import](https://github.com/jest-community/eslint-plugin-jest/blob/v28.8.0/docs/rules/no-mocks-import.md)<br />Disallow manually importing from `__mocks__`||||
66
+
|[](https://github.com/jest-community/eslint-plugin-jest#readme)|[no-standalone-expect](https://github.com/jest-community/eslint-plugin-jest/blob/v28.8.0/docs/rules/no-standalone-expect.md)<br />Disallow using `expect` outside of `it` or `test` blocks ||||
67
67
|[](https://github.com/jest-community/eslint-plugin-jest#readme)|[no-test-return-statement](https://github.com/jest-community/eslint-plugin-jest/blob/v28.8.0/docs/rules/no-test-return-statement.md)<br />Disallow explicitly returning from tests ||||
68
68
|[](https://github.com/jest-community/eslint-plugin-jest#readme)|[padding-around-after-all-blocks](https://github.com/jest-community/eslint-plugin-jest/blob/v28.8.0/docs/rules/padding-around-after-all-blocks.md)<br />Enforce padding around `afterAll` blocks || 🔧 ||
69
69
|[](https://github.com/jest-community/eslint-plugin-jest#readme)|[padding-around-after-each-blocks](https://github.com/jest-community/eslint-plugin-jest/blob/v28.8.0/docs/rules/padding-around-after-each-blocks.md)<br />Enforce padding around `afterEach` blocks || 🔧 ||
0 commit comments