Skip to content

Commit 2538d5e

Browse files
authored
docs: fix the jest warning: Animated: useNativeDriver (react-navigation#962)
* Update testing.md Animated warning file path change * docs: Remove warning Animated: 'useNativeDriver' Remove the Animated: `useNativeDriver` for [email protected], file has moved
1 parent b4676c3 commit 2538d5e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

versioned_docs/version-5.x/testing.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,10 @@ jest.mock('react-native-reanimated', () => {
3030

3131
// Silence the warning: Animated: `useNativeDriver` is not supported because the native animated module is missing
3232
jest.mock('react-native/Libraries/Animated/src/NativeAnimatedHelper');
33+
34+
// As of [email protected] file has moved
35+
jest.mock('react-native/Libraries/Animated/NativeAnimatedHelper');
36+
3337
```
3438

3539
Then we need to use this setup file in our jest config. You can add it under `setupFiles` option in a `jest.config.js` file or the `jest` key in `package.json`:

0 commit comments

Comments
 (0)