asyncFn is a library that provides additional methods to jest.fn or sinon.spy to introduce "late resolve" for the promises returned.
This simplifies async unit testing by allowing tests that read chronologically, like a story.
asyncFn has zero non-native dependencies. It has 100% unit test coverage, and 3+ years of focused production use with high developer satisfaction.
asyncFn is also integration-tested for combinations of recent OS-, node- and mocking framework -versions.
$ npm install --save-dev @async-fn/jest
or
$ npm install --save-dev @async-fn/sinon
See more details for jest or sinon.
See tutorial here.
See examples for jest or sinon.
asyncFn is lovingly crafted by Your pals at Team: Igniter from Houston Inc. Consulting.
We are a software development team of friends, with proven tradition in professional excellence. We specialize in holistic rapid deployments without sacrificing quality.
Come say hi at Gitter, email us, or check out the team's website. We just might be open to hiring ;)