You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix App callCount test by no longer stubbing free-standing function getCurrentUser due to version change
It turns out that you can no longer stub free-standing functions in Typescript 3.9.2+ according to this issue:
microsoft/TypeScript#38568sinonjs/sinon#562
The test in App.test.tsx was failing when it tried to get the callCount for a stub for a free-standing function getCurrentUser, and currently, my package-lock.json has 3.9.5, so that appears to be why. My fix was to use an object where the functions become methods instead.
0 commit comments