We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f07ab6c commit b8396ebCopy full SHA for b8396eb
1 file changed
jest.config.js
@@ -1,5 +1,11 @@
1
+let preset = 'react-native';
2
+try {
3
+ require.resolve('@react-native/jest-preset');
4
+ preset = '@react-native/jest-preset';
5
+} catch (_) {}
6
+
7
module.exports = {
- preset: '@react-native/jest-preset',
8
+ preset,
9
transformIgnorePatterns: [
10
'node_modules/(?!(@react-native|react-native|react-native-ui-lib|react-native-animatable|react-native-reanimated|react-native-webview)/)',
11
],
0 commit comments