-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
react native support #1
Comments
That's interesting! I managed to pull off the integration you're suggesting adding the following configuration to the RN project's "jest": {
"preset": "jest-react-native",
"moduleNameMapper": {
"react-native": "<rootDir>/node_modules/react-native-web"
},
"snapshotSerializers": [
"<rootDir>/node_modules/jest-html"
]
} You'll need to add both Caveats: you'll no longer have the official Jest snapshots with Views, Texts, and the like, but rather whatever If you explore this approach, please share your impressions! |
Tks for the help! I will wait until React release 15.4.0 to test this |
It should be just around the corner! ;) |
React 15.4.0 is out today. |
@sibelius Had success with your RN integration? |
I have this error using this approach
this is a breaking change on react 15.4.0 I need to open an issue on react-native-web to fix this |
I guess this is now outdated. Please reopen if needed |
Awesome idea!
How can we improve this package to work better with react native?
Maybe using https://github.com/necolas/react-native-web to render the snapshots
The text was updated successfully, but these errors were encountered: