Skip to content

Additional methods for different mocking libraries to introduce "late resolve" of promises returned by the mock functions. This allows tests that read chronologically, like a story.

Notifications You must be signed in to change notification settings

team-igniter-from-houston-inc/async-fn

Repository files navigation

asyncFn

Build and test Gitter

asyncFn

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.

How to install

$ npm install --save-dev @async-fn/jest

or

$ npm install --save-dev @async-fn/sinon

See more details for jest or sinon.

Tutorial

See tutorial here.

Examples

See examples for jest or sinon.

Who are we?

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 ;)

About

Additional methods for different mocking libraries to introduce "late resolve" of promises returned by the mock functions. This allows tests that read chronologically, like a story.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published