diff --git a/docs/docs/guide/testing.md b/docs/docs/guide/testing.md index d3d9bee5ec8..c1691428cd8 100644 --- a/docs/docs/guide/testing.md +++ b/docs/docs/guide/testing.md @@ -42,7 +42,7 @@ If you have custom babel configuration for testing, make sure that Reanimated's #### Timers You can use jest timers to control animation ```js -jest.useFakeTimers(); +jest.useFakeTimers(); // jest.useFakeTimers('legacy') for jest >= 27 // call animation jest.runAllTimers(); ``` @@ -91,4 +91,4 @@ More example tests you can see in our repository ## Recommended testing library - [@testing-library/react-native](https://callstack.github.io/react-native-testing-library/) -- [@testing-library/react-hooks](https://react-hooks-testing-library.com/) - for dealing with hooks \ No newline at end of file +- [@testing-library/react-hooks](https://react-hooks-testing-library.com/) - for dealing with hooks