Kivach
Cascading donations
Add repoPopularDonorsF.A.Q.
My repos

Footer

Subscribe to our newsletter

The latest news, articles, and resources, sent to your inbox.

DiscordTelegramTwitterMediumFacebookYouTubeGitHub

All information about repositories belongs to their owners.

More information about Kivach in the introductory article.

Built on Obyte

**Project summary** `vitest-when` adds a lightweight, declarative API for configuring stub behaviors on Vitest mock functions, letting you specify exact argument matches (via `calledWith`) and attach precise return, promise‑resolve, throw, or side‑effect handlers (`thenReturn`, `thenResolve`, `thenThrow`, `thenDo`, etc.) without scattering expectations across test phases. It’s aimed at developers who want clearer, harder‑to‑misconfigure mock setups—especially in TypeScript projects—where stub configuration lives entirely in the “arrange” stage and is fully type‑checked.

Total donated
Undistributed
Share with your subscribers:

Recipients

How the donated funds are distributed

Support the dependencies of mcous/vitest-when

Account's avatar
jestjs/jest
Stringify any JavaScript value.
Account's avatar
mcous/js
My base ESLint configuration.
Account's avatar
mcous/js
My base Prettier configuration.
Account's avatar
mcous/js
My base TypeScript configuration.
Account's avatar
DefinitelyTyped/DefinitelyTyped
TypeScript definitions for node
Account's avatar
vitest-dev/vitest
Istanbul coverage provider for Vitest
Account's avatar
vitest-dev/vitest
Jest's expect matchers as a Chai plugin
Account's avatar
open-cli-tools/concurrently
Run commands concurrently
Account's avatar
egoist/tsup
Bundle your TypeScript library with no config, powered by esbuild
Account's avatar
microsoft/TypeScript
TypeScript is a language for application scale JavaScript development
Account's avatar
vitest-dev/vitest
Next generation testing framework powered by Vite

Support the repos that depend on this repository

Top contributors

mcous's profile
mcous
49 contributions
sirlancelot's profile
sirlancelot
2 contributions
tommie-lie's profile
tommie-lie
1 contributions

Recent events

Kivach works on the Obyte network, and therefore you can track all donations.

No events yet
mcous

mcous/vitest-when

Stub behaviors of Vitest mock functions based on how they are called

TypeScript
50
8
MIT License