You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When passing a component to mount in React as an object, the mount function cannot derive the component name and throws an error. The error that is surfaced to the user does not point to the cause or solution of the scenario and is confusing for the user.
Expected Behavior
Instead of throwing the error at this stage we should verify that the component is the correct type and throw the error if that is not the case with better messaging for the user
Additional considerations
Verify that other frameworks handle this situation gracefully and address it in a similar way if this is not the case.
The text was updated successfully, but these errors were encountered:
The code for this is done in cypress-io/cypress#24571, but has yet to be released.
We'll update this issue and reference the changelog when it's released.
Current Behavior
When passing a component to mount in
React
as an object, the mount function cannot derive the component name and throws an error. The error that is surfaced to the user does not point to the cause or solution of the scenario and is confusing for the user.Expected Behavior
Instead of throwing the error at this stage we should verify that the component is the correct type and throw the error if that is not the case with better messaging for the user
Additional considerations
Verify that other frameworks handle this situation gracefully and address it in a similar way if this is not the case.
The text was updated successfully, but these errors were encountered: