Closed hoi4 closed 1 year ago
I had a quick look and it seems related to how we do deep partisl for functions. I think for now you could ignore the error with ts ignore but I will see if I can find a fix for it
Would be awesome to have a fix for this to avoid using ts-ignore
😅
I know 😂! I will have another look tonight!
Also have hit this.
Same here. My projects have a lot of nested mocks so a fix for this would be amazing!
Sorry for the delay, I have a fix!! release soon! I've just copied the partial deep utilities from another library!
You might try now https://github.com/Typescript-TDD/ts-auto-mock/releases/tag/3.7.1
That seems to have resolved the issue for me. Thank you!
@uittorio Works like a charm. Thank you so much! 🎉
@uittorio Most of our tests work like a charm with the new version. Thank you the amazingly quick release.
There seems to be a problem with nested mocks though 🤔
Example:
The error is
Type 'SummaryImage[]' is not assignable to type 'PartialObjectDeep<SummaryImage[]>
.Your environment
3.7.0
5.0.4
18.15.0
9.6.6
3.0.0-beta3