From e3b765509c8347cfec647735e110d4bc038c078e Mon Sep 17 00:00:00 2001 From: yaojie Date: Tue, 19 Nov 2019 18:13:42 +0800 Subject: [PATCH 1/2] update README with jest.useFakeTimers() ceveat --- README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.md b/README.md index 25fe00b..8c8c0d8 100644 --- a/README.md +++ b/README.md @@ -163,6 +163,10 @@ reason it was included in this package is because we need you to import render f `dom-testing-library`, and that's an important blocker. Some day, maybe we'll try to allow use of that library with this one somehow. +## Ceveats + +If you are using jest, using `jest.useFakeTimers()` will stop several async functions like `find*` and `waitForElement` from working. + ## Contributors Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)): From 8a5071ec59c63397d0495af4a7544cf8dd546de7 Mon Sep 17 00:00:00 2001 From: yaojie Date: Tue, 19 Nov 2019 18:17:46 +0800 Subject: [PATCH 2/2] rename ceveat to gotcha --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 8c8c0d8..1c69b88 100644 --- a/README.md +++ b/README.md @@ -163,7 +163,7 @@ reason it was included in this package is because we need you to import render f `dom-testing-library`, and that's an important blocker. Some day, maybe we'll try to allow use of that library with this one somehow. -## Ceveats +## Gotchas If you are using jest, using `jest.useFakeTimers()` will stop several async functions like `find*` and `waitForElement` from working.