google / intermock

Mocking library to create mock objects with fake data for TypeScript interfaces
https://google.github.io/intermock/
Apache License 2.0
1.14k stars 71 forks source link

Support Date #13

Open chaowlert opened 5 years ago

chaowlert commented 5 years ago

When I mock data contains Date, intermock throw UnhandledPromiseRejectionWarning: Error: Type 'Date' is not specified in the provided files but is required for property: 'completedDate'. Please include it..

ryanmcdermott commented 5 years ago

Oh yes, this needs to be fixed. Not every JS native type is supported yet. If you or anyone has time, this would be a great fix and I will approve!

danseaman6 commented 3 years ago

Over a year down the line - has there been any effort to support the Date type? If not, where exactly is the list of currently support types, and I can look into adding it?

vellengs commented 3 years ago

any update?

vellengs commented 3 years ago

https://github.com/google/intermock/pull/59