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
I attempted to develop my composite components using your example and to test them. Unfortunately, some components cannot be tested without mocking them.
I'm expecting to not be necessary to mock those components.
Describe the bug
I attempted to develop my composite components using your example and to test them. Unfortunately, some components cannot be tested without mocking them.
For all these components, you encounter the same error:
Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: undefined. You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.
I have added the libraries to transformIgnorePatterns like |@rneui/*.
Other components, such as Text, didn't encounter any issues.
Is there an existing issue for this?
Explain what you did
I attempted to develop my composite components using your example and to test them. Unfortunately, some components cannot be tested without mocking them.
The components facing issues are as follows:
Expected behavior
I'm expecting to not be necessary to mock those components.
Describe the bug
I attempted to develop my composite components using your example and to test them. Unfortunately, some components cannot be tested without mocking them.
The components facing issues are as follows:
For all these components, you encounter the same error:
I have added the libraries to
transformIgnorePatterns
like|@rneui/*
.Other components, such as
Text
, didn't encounter any issues.Steps To Reproduce
RaisedButton.tsx
RaisedButton.test.tsx
renderWithThemeProvider
- implementationScreenshots
Your Environment
`npx @rneui/envinfo`
The text was updated successfully, but these errors were encountered: