goldbergyoni / goldbergyoni/nodejs-testing-best-practices

VSCode snippets for integration tests

Open
#83 0 comments 0 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.