Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions versioned_docs/version-6.x/testing.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,10 @@ jest.mock('react-native-reanimated', () => {
});

// Silence the warning: Animated: `useNativeDriver` is not supported because the native animated module is missing
// For RN >= 0.76
jest.mock('react-native/src/private/animated/NativeAnimatedHelper');

// For RN <0.76
jest.mock('react-native/Libraries/Animated/NativeAnimatedHelper');
```

Expand Down
4 changes: 4 additions & 0 deletions versioned_docs/version-7.x/testing.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,10 @@ setUpTests();
// Silence the warning: Animated: `useNativeDriver` is not supported because the native animated module is missing
import { jest } from '@jest/globals';

// For RN >= 0.76
jest.mock('react-native/src/private/animated/NativeAnimatedHelper');

// For RN <0.76
jest.mock('react-native/Libraries/Animated/NativeAnimatedHelper');
```

Expand Down
4 changes: 4 additions & 0 deletions versioned_docs/version-8.x/testing.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,10 @@ setUpTests();
// Silence the warning: Animated: `useNativeDriver` is not supported because the native animated module is missing
import { jest } from '@jest/globals';

// For RN >= 0.76
jest.mock('react-native/src/private/animated/NativeAnimatedHelper');

// For RN <0.76
jest.mock('react-native/Libraries/Animated/NativeAnimatedHelper');
```

Expand Down
Loading