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: README.md
+1-1
Original file line number
Diff line number
Diff line change
@@ -219,7 +219,7 @@ To enable this configuration use the `extends` property in your
219
219
|[`no-manual-cleanup`](./docs/rules/no-manual-cleanup.md)| Disallow the use of `cleanup`|||
220
220
|[`no-node-access`](./docs/rules/no-node-access.md)| Disallow direct Node access ||![angular-badge][]![react-badge][]![vue-badge][]![marko-badge][]|
221
221
|[`no-promise-in-fire-event`](./docs/rules/no-promise-in-fire-event.md)| Disallow the use of promises passed to a `fireEvent` method ||![dom-badge][]![angular-badge][]![react-badge][]![vue-badge][]![marko-badge][]|
222
-
|[`no-render-in-setup`](./docs/rules/no-render-in-setup.md)| Disallow the use of `render` in testing frameworks setup functions ||![angular-badge][]![react-badge][]![vue-badge][]![marko-badge][]|
222
+
|[`no-render-in-lifecycle`](./docs/rules/no-render-in-lifecycle.md)| Disallow the use of `render` in testing frameworks setup functions ||![angular-badge][]![react-badge][]![vue-badge][]![marko-badge][]|
223
223
|[`no-unnecessary-act`](./docs/rules/no-unnecessary-act.md)| Disallow wrapping Testing Library utils or empty callbacks in `act`||![react-badge][]![marko-badge][]|
224
224
|[`no-wait-for-empty-callback`](./docs/rules/no-wait-for-empty-callback.md)| Disallow empty callbacks for `waitFor` and `waitForElementToBeRemoved`||![dom-badge][]![angular-badge][]![react-badge][]![vue-badge][]![marko-badge][]|
225
225
|[`no-wait-for-multiple-assertions`](./docs/rules/no-wait-for-multiple-assertions.md)| Disallow the use of multiple `expect` calls inside `waitFor`||![dom-badge][]![angular-badge][]![react-badge][]![vue-badge][]![marko-badge][]|
Copy file name to clipboardexpand all lines: docs/rules/no-render-in-lifecycle.md
+2-2
Original file line number
Diff line number
Diff line change
@@ -1,4 +1,4 @@
1
-
# Disallow the use of `render` in setup functions (`testing-library/no-render-in-setup`)
1
+
# Disallow the use of `render` in setup functions (`testing-library/no-render-in-lifecycle`)
2
2
3
3
## Rule Details
4
4
@@ -77,5 +77,5 @@ it('Should have foo and bar', () => {
77
77
If you would like to allow the use of `render` (or a custom render function) in _either_`beforeAll` or `beforeEach`, this can be configured using the option `allowTestingFrameworkSetupHook`. This may be useful if you have configured your tests to [skip auto cleanup](https://testing-library.com/docs/react-testing-library/setup#skipping-auto-cleanup). `allowTestingFrameworkSetupHook` is an enum that accepts either `"beforeAll"` or `"beforeEach"`.
0 commit comments