What I'm trying to achieve:
test my component (which is simply a div wrapping around DatePicker to apply some styling) using testing-library
To Reproducenpm run test: fails with the following 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.
What I'm trying to achieve: test my component (which is simply a div wrapping around DatePicker to apply some styling) using testing-library
To Reproduce
npm run test
: fails with the following error:What I have tried so far
Screenshots
component implementation
test file
terminal output