aws-appsync-rds-aurora-sample icon indicating copy to clipboard operation
aws-appsync-rds-aurora-sample copied to clipboard

testing example

Open aleksandersumowski opened this issue 5 years ago • 2 comments

Is there a suggested way to write automated, local tests for AppSync backed by Postgres Aurora? I'd like to run them as part of CI pipeline and not have to call actual service

aleksandersumowski avatar Dec 16 '19 16:12 aleksandersumowski

We currently don't offer a way to mock calls to Aurora Serverless, but you can take a look at https://aws.amazon.com/blogs/aws/new-local-mocking-and-testing-with-the-amplify-cli/ which lets you test run AppSync resolvers locally.

AaronHarris avatar Dec 24 '19 19:12 AaronHarris

The posibility to test the resolvers is quite cool, but it seems closely coupled to the Amplify framework. Running amplify mock api results in a "not working inside a valid amplify project" Would it be possible to extract it/make it independent? I was considering to use AppSync as an internal API, not a backend for a website - Amplify is completely irrelevant for us ...

ghost avatar Jan 06 '20 14:01 ghost