0

I've been using AWS appsync service. However, I'm not able to figure out a way to write unit test cases for the development I've been doing.

Please see if anyone can share any information in this regard.

  • It depends what you need. If you writing an app with JS you can use jest. If you search github you can find some repos with some examples tests like this here https://github.com/esoh/fitzpo/blob/develop/fitzpo-core/__tests__/index.js – Kevin Regenrek Apr 07 '20 at 15:38
  • thank you so much @KevinRegenrek However, I've couple of queries. Let me share the tech stack I've been using: serverless frameowrk from serverless.com , nodejs, aws appsync, serverless-appsync-plugin . I can share further information if required. Now coming to queries. 1. still a little unclear how to write test cases using my laptop without logging into AWS console 2. how to execute these test cases locally and over AWS appsync console.. – Neeraj Garg Apr 08 '20 at 17:32
  • Also, just to clarify the requirement, the question is on how to write automated unit test cases for backend i.e. appsync APIs ( not for appsync client at the front side) – Neeraj Garg Apr 08 '20 at 17:38
  • I think you are looking for this : https://stackoverflow.com/questions/54046045/unit-test-graphql-schemas-queries-made-in-aws-appsync – Harish Vemula Apr 08 '20 at 23:46
  • did you found any documentation regarding this? – Dharmendra Singh Negi Apr 16 '20 at 10:00

0 Answers0