Open LaurenceM10 opened 3 years ago
I also have mocked:
jest.mock('react-native-shared-element', () => {
return () => ({});
});
jest.mock('react-navigation-shared-element', () => {
return () => ({
createSharedElementStackNavigator: jest.fn(),
});
});
Did you find a solution?
I'm stuck with this too.
I haven't found a solution yet @giuseppeabn
Anyone find a solution?
I'm getting this error when I run tests
Warning: React.createElement: 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'm using jest and RNTL. The line of the problem is when declare the SharedElement component:<SharedElement id={`${id}${company?.logoUrl}`}>
Here my depedencies and devDependencies