Skip to content

Commit

Permalink
test(graphql-transformers-e2e-tests): prevent SES ratelimit errors
Browse files Browse the repository at this point in the history
Without this commit, running e2e tests could cause this error: `Failed when signing up user
LimitExceededException: Exceeded daily email limit for the operation or the account. If a higher
limit is required, please configure your user pool to use your own Amazon SES configuration for
sending email.`
  • Loading branch information
johnpc committed May 27, 2021
1 parent 53c115f commit 0bb513a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/graphql-transformers-e2e-tests/src/cognitoUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@ export async function signupUser(userPoolId: string, name: string, pw: string) {
UserAttributes: [{ Name: 'email', Value: name }],
Username: name,
TemporaryPassword: pw,
DesiredDeliveryMediums: [],
MessageAction: 'SUPPRESS',
},
(err, data) => (err ? rej(err) : res(data)),
);
Expand Down

0 comments on commit 0bb513a

Please sign in to comment.