-
-
Notifications
You must be signed in to change notification settings - Fork 2k
Open
Labels
feature requestIssues asking for stuff that would be semver-minorIssues asking for stuff that would be semver-minorhelp wanted
Description
Problem Statement
Currently we have no support for using a react native adapter with Enzyme. This is because the current adapters are built for react native web.
Attempting to use mount with the current adapter will cause various issues from polluting the user's console with a ton of logs to inability to import necessary libraries.
While this is the case you can get some testing done by filtering the logs and using jsdom.
Most of the console error issues seem to be coming from the ReactDOM call for the React 16 adapter here
Purpose
The purpose of this ticket is to track work related to implementation and decisions regarding implementation of a react native enzyme adapter.
TODO
- Find an alternative to rendering with ReactDOM
- Decide best way to use the solution for (1) with existing adapters
- Decide whether we would like to do all necessary react native stubbing in the adapter a-la react-native-mock-render, do a RYO implementation, or not take a firm stance to the native mocking
- Add unit tests to verify functionality
- Update Necessary Docs
Related Issues
cmwall, AbdallaElabd, helielson, uqee, robinkwilson and 56 moreThaJay, kotazi, tjoskar, cmwall, helielson and 18 more
Metadata
Metadata
Assignees
Labels
feature requestIssues asking for stuff that would be semver-minorIssues asking for stuff that would be semver-minorhelp wanted