shiftcode / dynamo-easy

DynamoDB client for NodeJS and browser with a fluent api to build requests. We take care of the type mapping between JS and DynamoDB, customizable trough typescript decorators.
https://shiftcode.github.io/dynamo-easy/
MIT License
204 stars 27 forks source link

question: how to write unit tests #364

Closed hassanazharkhan closed 2 years ago

hassanazharkhan commented 2 years ago

Is there any guide that state how to write unit tests using jest or any other lib?

if not, it would be worth while to have some docs / guide on writing unit tests using jest or any other common lib.

michaelwittwer commented 2 years ago

@hassanazharkhan why do you think there should be a guide on how to write unit tests? Are currently blocked on a potential PR because you can't write the test or what's the purpose of this issue?

I don't think there is any special implementation in the tests, plain jest basically.