Skip to content
JS
Package

@async-fn/jest

Additional methods to jest.fn to introduce "late resolve" of promises returned by mock functions. This allows tests that read chronologically, like a story.

v1.8.0, 4 May 2026MITCommonJSTypes: BundledTestingDev servers and API mocking
$ npm install @async-fn/jest

Key numbers

As of 25 Sept 2026
Weekly downloads
1.8k
- over 12 months
Gzip bundle size
-
No Bundlephobia data
Dependencies
0
Direct, from package.json
Last release
4 months ago
v1.8.0
GitHub stars
10
3 forks
Open issues / PRs
1 / 3
Contributors
-
Commits, last 52 weeks
23

No weekly download data in the snapshot.

1,817 downloads last week, 3,307 in the last month. No 52-week series has been fetched yet.

Releases, last 12 months
-
Latest version
1.8.0, 4 May 20264 months ago
First published
-
Last push to GitHub
4 May 2026143 days before the snapshot
Repository archived
No
Open issues
1
Open pull requests
3
Commits, last 52 weeks
23
Dependents on npm
2

Major versions

-

Recent releases

-

Module format
CommonJSFrom package.json type, main and exports fields
TypeScript types
Bundled
Node.js engine range
Not declared
Runtimes
-
Unpacked size (npm)
63 kB
Dependencies (0)
None
Peer dependencies (1)
jest
npm install @async-fn/jest
  • jsDelivrhttps://cdn.jsdelivr.net/npm/@async-fn/jest@1.8.0/
  • unpkghttps://unpkg.com/@async-fn/jest@1.8.0/
  • esm.shhttps://esm.sh/@async-fn/jest@1.8.0
PackageWeekly downloadsGzipLast releaseModuleComparison
async-test-util23.5k-2 years agoESM + CommonJS-
jest-websocket-mock212.9k-3 years agoESM + CommonJS-
jest-localstorage-mock281k-3 years agoESM + CommonJS-
vuex-mock-store13.5k-3 years agoCommonJS-
fast-check30m-5 days agoESM + CommonJS-
mock-match-media31.2k-11 months agoESM + CommonJS-
@jest-mock/express502.9k-1 year agoCommonJS-
jest-canvas-mock2m-2 months agoCommonJS-
Sources: npm registry, GitHub API. Data fetched 25 Sept 2026.

Indexability: Not indexed (discovery only): downloads_week 1817 < 10000.