nodejs-integration-tests-best-practices icon indicating copy to clipboard operation
nodejs-integration-tests-best-practices copied to clipboard

VSCode snippets for integration tests

Open goldbergyoni opened this issue 5 years ago • 0 comments

Idea: Generate snippets with common component tests patterns

  • Test with when-then + AAA
  • nock verify outgoing payload
  • Assert HTTP response
  • Describe with API verbs (/api + describe for POST, GET, DELETE)
  • Randmoize unique value
  • Axios request with token
  • Example of basic test which assert the response
  • Example of basic test which asserts the existing state
  • Example of basic test which asserts outgoing call
  • Others?

goldbergyoni avatar Apr 01 '21 14:04 goldbergyoni