miniOauthServer, because it hangs indefinitely even when the test is finished (it is mocked by an instantly resolving promise simulating the user being returned from the oauth flow to the oauth callback)
googleapis.auth.OAuth2.prototype.getToken because we want to be able to simulate a call to Google's token endpoint and make assertions on the token that was acquired
This fixes the
auth
command test by mocking:miniOauthServer
, because it hangs indefinitely even when the test is finished (it is mocked by an instantly resolving promise simulating the user being returned from the oauth flow to the oauth callback)googleapis.auth.OAuth2.prototype.getToken
because we want to be able to simulate a call to Google's token endpoint and make assertions on the token that was acquired