My Jest tests are failing after upgrading to SDK 25. I’m getting SyntaxError: Invalid or unexpected token
in /@expo/vector-icons/fonts/Ionicons.ttf:1
.
Tried adding "node_modules/@expo/vector-icons/fonts"
to my transformIgnorePatterns
but with no luck. Any ideas?
This is my my jest configuration
"jest": {
"preset": "jest-expo",
"transformIgnorePatterns": [
"node_modules/(?!react-native|react-native-gesture-handler|native-base|react-navigation)/"
],
"verbose": false,
"testMatch": ["**/__tests__/**/?(*.)(spec|test).js?(x)"],
"setupTestFrameworkScriptFile": "./__tests__/setup.js",
"testPathIgnorePatterns": ["/node_modules/"],
"globals": {
"__DEV__": true
}
},