danielmoncada/date-time-picker

Testing with jest - Unexpected value 'OwlDateTimeModule' imported by the module

Closed this issue · 1 comments

I like this component and I also will help if needed.

At the moment I do have some trouble with the current version 13.1.1 and testing my angular app with jest.
I have no idea if this is connected to the issue: #141.

I have a shared Module importing and exporting OwlDateTimeModule and OwlNativeDateTimeModule.

I include it in my test and I got following error:

Unexpected value 'OwlDateTimeModule' imported by the module 'SharedModule'. Please add an @NgModule annotation.

thanks @inpercima appreciate you willing to help. let me try and work on the ng13 upgrade, then you can retest to see if it fixes it. I'm assuming we just need to annotation added.