Error: Uncaught [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.
This is the error I was getting while running test in jest. React component which is being tested uses <Trans>
from react-i18next
. When I comment that portion of code, test were working as expected.