By using AWS re:Post, you agree to the Terms of Use
/AWS AppConfig/

Questions tagged with AWS AppConfig

Sort by most recent
  • 1
  • 90 / page

Browse through the questions and answers listed below or filter and sort to narrow down your results.

AppSync - Cognito: user/pwd not working in jest test - rejectNoUserPool thrown

Hello, I have an AppSync app configured with Cognito authentication. All is working fine for the Amplify frontend. I would like to add some jest integration tests and was hoping to be able to also use user/pwd authentication (found examples using API_KEY but that is not really something I want to add) I have tried a lot of things and config options but all of them result in ``` console.error [ERROR] 18:24.753 AuthError - Error: Amplify has not been configured correctly. The configuration object is missing required auth properties. This error is typically caused by one of the following scenarios: 1. Did you run `amplify push` after adding auth via `amplify add auth`? See for more information 2. This could also be caused by multiple conflicting versions of amplify packages, see ( for help upgrading Amplify packages. at ConsoleLogger.Object.<anonymous>.ConsoleLogger._log (node_modules/@aws-amplify/core/src/Logger/ConsoleLogger.ts:115:4) at ConsoleLogger.Object.<anonymous>.ConsoleLogger.error (node_modules/@aws-amplify/core/src/Logger/ConsoleLogger.ts:174:12) at NoUserPoolError.AuthError [as constructor] (node_modules/@aws-amplify/auth/src/Errors.ts:34:10) at new NoUserPoolError (node_modules/@aws-amplify/auth/src/Errors.ts:40:3) at AuthClass.Object.<anonymous>.AuthClass.rejectNoUserPool (node_modules/@aws-amplify/auth/src/Auth.ts:2248:25) at AuthClass.Object.<anonymous>.AuthClass.signIn (node_modules/@aws-amplify/auth/src/Auth.ts:480:16) at signIn (test/AnnotationsSpec.ts:44:17) ``` Before sharing any of the config details (which I am sure would be needed to provide detailed help) is it at all possible to use Appsync with USER_PWD authentication from a jest test? Any examples 'out there'? Tx!! Peter PS using a bunch of curl commands it does work out to send a query to the AppSync app and get the results back
asked 4 months ago
  • 1
  • 90 / page