From 1910abc69e4a99b48e0f74c3657f7dba6e9d63de Mon Sep 17 00:00:00 2001 From: Lorenzo Pieri Date: Tue, 17 Mar 2020 13:26:37 +0100 Subject: [PATCH] Add jest fake timers gotchas to install page --- docs/install.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/docs/install.md b/docs/install.md index 303242a..508426f 100644 --- a/docs/install.md +++ b/docs/install.md @@ -82,6 +82,9 @@ select them or see them in debug output. These components wrap other components, let you select them directly. If you're having trouble selecting what you need to inside of one of these components that isn't mocked, just `debug()` to see what your users are seeing ☺️ +> Using `jest.useFakeTimers()` will stop several async functions like `get*` / `find*` and `wait` / +> `waitForElement` from working. + ## Exports You will likely be able to import everything you'll need from the project entry point like this: