date-time-picker icon indicating copy to clipboard operation
date-time-picker copied to clipboard

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

Open inpercima opened this issue 3 years ago • 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: https://github.com/danielmoncada/date-time-picker/issues/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.

inpercima avatar Mar 03 '22 09:03 inpercima

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.

danielmoncada avatar Apr 30 '22 18:04 danielmoncada