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
Default timeout, in ms, for async helper functions (`waitFor`, `waitForElementToBeRemoved`) and `findBy*` queries. Defaults to 1000 ms.
@@ -742,6 +744,22 @@ Default timeout, in ms, for async helper functions (`waitFor`, `waitForElementTo
742
744
function resetToDefaults() {}
743
745
```
744
746
747
+
### Environment variables
748
+
749
+
#### `RNTL_SKIP_AUTO_CLEANUP`
750
+
Set to `true` to disable automatic `cleanup()` after each test. It works the same as importing `react-native-testing-library/dont-cleanup-after-each` or using `react-native-testing-library/pure`.
751
+
752
+
```shell
753
+
$ RNTL_SKIP_AUTO_CLEANUP=true jest
754
+
```
755
+
756
+
#### `RNTL_SKIP_AUTO_DETECT_FAKE_TIMERS`
757
+
Set to `true` to disable auto-detection of fake timers. This might be useful in rare cases when you want to use non-Jest fake timers. See [issue #886](https://github.com/callstack/react-native-testing-library/issues/886) for more details.
0 commit comments