Closed gciluffo closed 2 years ago
hello @gciluffo 👋 I'm thinking that your jest.web.config.js
may need some tweaks, I will be happy to help if you create a repo with a reproduction (also, do you use the latest version of Stacks?)
@mobily Yeah thats what im thinking too. And yes am using the latest version.
Repo: https://github.com/gciluffo/react-native-web and just yarn && yarn test:web
to reproduce.
@gciluffo thanks for the repo! ❤️ I've already found a place in code that causes this bug and it will be fixed in the next release (I'm gonna publish it this week), I will let you know! 🚀
@mobily Looks good, thank you for getting to this so fast!
Hi, im currently running into issue with running snapshot tests using react testing library and react native web. I am trying to have separate tests for both native and web by having two different jest configs. The native tests (with jest preset react-native) run fine with Mobily components but seems to break when running under the web configuration (jest preset react-native-web).
Here is an example repo with the issue: https://github.com/gciluffo/react-native-web
Im not sure if this is an issue with Mobily + test-library + react native web or im just not configuring my jest.web.config.js file correctly. Any insight would be appreciated!