cy.mount() does not provide meaningful error message when component to mount was incorrectly imported #22790
Labels
CT
Issue related to component testing
npm: @cypress/react
@cypress/react package issues
Triaged
Issue has been routed to backlog. This is not a commitment to have it prioritized by the team.
type: error message
Current behavior
cy.mount()
does not provide meaningful error message when component to mount was incorrectly imported because we are trying to determine the display name before mounting.Desired behavior
Provide an error message similar to
Test code to reproduce
Import a component using a wrong path, i.e. if component is exported by default, use a named import
Cypress Version
10.3.0
Other
No response
The text was updated successfully, but these errors were encountered: