testing example
aleksandersumowski opened this issue · 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
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.
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 ...