Skip to content

Commit

Permalink
test(graphql-transformers-e2e-tests): prevent SES ratelimit errors (a…
Browse files Browse the repository at this point in the history
…ws-amplify#7412)

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 authored and cjihrig-aws committed Jul 12, 2021
1 parent d3da441 commit 4d82769
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 4d82769

Please sign in to comment.