Open aymkin opened 9 months ago
Thanks for reporting the issue. We'll give an update soon.
Thanks for reporting the issue. We'll give an update soon.
I used Expo and encountered this bug. I tried this way, but I can't fix.
https://github.com/gluestack/gluestack-ui/issues/1095
I'm looking forward to the updated version and advice to test with jest.
I'm having the same issue, any luck? If there's a way to mock the config files this issue will go away.
I'm having the same issue... Any news on this front?
Did you tried adding this to your Jest config:
"transformIgnorePatterns": [
"node_modules/(?!((jest-)?react-native|@react-native(-community)?)|expo(nent)?|@expo(nent)?/.*|@expo-google-fonts/.*|react-navigation|@react-navigation/.*|@unimodules/.*|unimodules|sentry-expo|@gluestack-ui/*|@gluestack-style/*|@legendapp/*|react-native-svg)"
]
Description
Default project can not run tests due to wrong jest config
CodeSandbox/Snack link
No response
Steps to reproduce
npm create gluestack
Mobile app (React Native + gluestack-ui)
, the rest can be dafaultcd my-app && npm run test
"@gluestack-style/react": "latest", 1.0.26 "@gluestack-ui/themed": "latest", 1.0.25 "@gluestack-ui/config": "latest", 1.0.8 "@legendapp/motion": "latest", 2.2.1
Expectation
I would expect that default cofig is configured to use latest Jest
gluestack-ui Version
latest
Platform
Other Platform
No response
Additional Information
No response