amplify icon indicating copy to clipboard operation
amplify copied to clipboard

[Documentation] Tests for Stripe API

Open Alex-is-Gonzalez opened this issue 2 years ago • 6 comments

Files are here

Pre- work:

  • highlight code snippets and ask Copilot Chat: "Explain this test to me", or use the /explain slash command
  • Ask Copilot Chat questions about the test framework:
    • "why do we use the jest framework?"
    • "what are the advantages of jest over chai?"

Tasks for completion:

  • [ ] enhance the inline comments: highlight functions and prompt Copilot: "refactor to be more readable with inline comments"

Alex-is-Gonzalez avatar Oct 13 '23 15:10 Alex-is-Gonzalez

What section of the wiki page should I add the summary for all test codes? Above the 'Test environment variables' section or beneath it?

CodingLady22 avatar Oct 26 '23 14:10 CodingLady22

Hi, @CodingLady22 the second checkbox specifies this URL https://github.com/ProgramEquity/amplify/wiki/Stripe-API-Endpoint which is labeled 'Testing the Stripe Endpoint'

manishapriya94 avatar Oct 26 '23 14:10 manishapriya94

@manishapriya94 I was referring to where on this page I am to place my summary, as the page already has content and I wasn't sure if there is a particular flow the page should follow or not. Can you please advice?

CodingLady22 avatar Oct 26 '23 14:10 CodingLady22

Thanks for the clarity @CodingLady22! If you want to add them under test documentation - that seems like a good flow

manishapriya94 avatar Oct 26 '23 14:10 manishapriya94

I have added the summary for all test codes to the wiki page. Can the summary be checked to confirm if it aligns with the requirements, and do you think including a copy of the code itself is advisable?

CodingLady22 avatar Oct 26 '23 22:10 CodingLady22

Branch: issue-605

Dunridge avatar Dec 12 '23 04:12 Dunridge