If I set a bogus ClientId, I get a ResourceNotFoundException, but if I provide a valid ClientId, the command gets sent onto Cognito and the user is created. I'm unsure if I am doing anything incorrect, but it seems as if the mock is not intercepting the command sent to Cognito
Checklist
Bug description I am using NestJS and trying to mock out the CognitoIdentityProvider. I do this in a beforeEach via
If I set a bogus ClientId, I get a ResourceNotFoundException, but if I provide a valid ClientId, the command gets sent onto Cognito and the user is created. I'm unsure if I am doing anything incorrect, but it seems as if the mock is not intercepting the command sent to Cognito
Environment
v16.13.2
Jest - 27.2.5
4.3.5
0.6.2
@aws-sdk/client-cognito-identity - 3.76.0
@aws-sdk/client-cognito-identity-provider - 3.76.0