When using TypeScript and Jest, proper overloading might not occur, leading to errors in the IDE.
Hi.
I am using TypeScript and Jest to utilize the spyOn
method. However, WebStorm is unable to locate the overloaded spyOn
method, resulting in errors being triggered.
Why is this outcome occurring? Is there a way to understand the reason behind it?
※ code
※ I want to use the methods of the red box, but WebStorm incorrectly recognizes the methods of the blue box
※ package.json
※ WebStorm Version
2023.1.4
Please sign in to leave a comment.
Elena Pogorelova
Thanks for the quick response! I'll keep an eye on the progress going forward