goldbergyoni / goldbergyoni/nodejs-testing-best-practices
VSCode snippets for integration tests
Open
- Dominant language
- JavaScript
- Stars
- 4.4k
- Forks
- 288
- PR merge metrics
- No merged PRs in 30d
Description
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?
Contributor guide
Assessment
This issue has not been assessed yet.