Open DavidWeng0 opened 1 year ago
https://domoreexp.visualstudio.com/Teamspace/_git/teams-modular-packages
As setState mock has been called, related block should be marked as covered.
Marked as not covered even it is been called.
Testing with useState and mock has been called.
cache: false
# paste the output here
I am having the same problem in a vue project. any solution yet ? @DavidWeng0
Link to bug demonstration repository
https://domoreexp.visualstudio.com/Teamspace/_git/teams-modular-packages
Expected Behavior
As setState mock has been called, related block should be marked as covered.
Observed Behavior
Marked as not covered even it is been called.![image](https://user-images.githubusercontent.com/112141619/186967250-a0fb756d-d021-484e-9da9-de67142216a3.png)
Testing with useState and mock has been called.![image](https://user-images.githubusercontent.com/112141619/186967453-7aedeb3e-2f56-4503-83a6-594d2f39e450.png)
Troubleshooting steps
cache: false
in my nyc configEnvironment Information