Currently, I am in the process of writing test cases for Angular using Jasmine 3.6.0 and TypeScript 4.1.5 with "strict": false set in my tsconfig.json file.
One particular task involves spying on a component method called 'close', and following the correct syntax, I wrote the code snippet below:
let spy = spyOn<MyComponent>(component,'close');
Initially, everything was functioning as expected. However, upon moving the source code to a different directory, installing node modules, I encountered the following error:
'Argument of type 'string' is not assignable to parameter of type 'never''
I have come across similar issues posted by other developers and attempted their suggested solutions, yet I continue to face the same error. Despite having disabled strict mode, I remain puzzled as to what exactly is causing this problem.