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

mock-property is a utility library that allows developers to temporarily replace or delete a property descriptor on an object, and then restore it later using a provided thunk. It is designed for testing scenarios where mocking object properties is necessary, such as when testing code that relies on getters, setters, or other property behaviors. This library is particularly useful for JavaScript developers writing unit tests who need to isolate and control object property behavior.

Total donated
Undistributed
Share with your subscribers:

Recipients

How the donated funds are distributed

Support the dependencies of ljharb/mock-property

Account's avatar
ljharb/define-data-property
Define a data property on an object. Will fall back to assignment in an engine without descriptors.
Account's avatar
inspect-js/functions-have-names
Does this JS environment support the `name` property on functions?
Account's avatar
ljharb/gopd
`Object.getOwnPropertyDescriptor`, but accounts for IE's broken implementation.
Account's avatar
inspect-js/has-property-descriptors
Does the environment have full property descriptor support? Handles IE 8's broken defineProperty/gOPD.
Account's avatar
inspect-js/hasOwn
A robust, ES3 compatible, "has own property" predicate.
Account's avatar
juliangruber/isarray
Array#isArray for older browsers
Account's avatar
inspect-js/object-inspect
string representations of objects in node and the browser
Account's avatar
arethetypeswrong/arethetypeswronghub.io.git
A CLI tool for arethetypeswrong.github.io
Account's avatar
ljharb/eslint-config
My shareable eslint config
Account's avatar
ljharb/tsconfig
My personal tsconfig(s), so my open source projects can share them.
Account's avatar
DefinitelyTyped/DefinitelyTyped
TypeScript definitions for for-each
Account's avatar
DefinitelyTyped/DefinitelyTyped
TypeScript definitions for functions-have-names
Account's avatar
DefinitelyTyped/DefinitelyTyped
TypeScript definitions for get-intrinsic
Account's avatar
DefinitelyTyped/DefinitelyTyped
TypeScript definitions for gopd
Account's avatar
DefinitelyTyped/DefinitelyTyped
TypeScript definitions for has-property-descriptors
Account's avatar
DefinitelyTyped/DefinitelyTyped
TypeScript definitions for is-callable
Account's avatar
DefinitelyTyped/DefinitelyTyped
TypeScript definitions for isarray
Account's avatar
DefinitelyTyped/DefinitelyTyped
TypeScript definitions for make-arrow-function
Account's avatar
DefinitelyTyped/DefinitelyTyped
TypeScript definitions for make-async-function
Account's avatar
DefinitelyTyped/DefinitelyTyped
TypeScript definitions for make-generator-function
Account's avatar
DefinitelyTyped/DefinitelyTyped
TypeScript definitions for node
Account's avatar
DefinitelyTyped/DefinitelyTyped
TypeScript definitions for object-inspect
Account's avatar
DefinitelyTyped/DefinitelyTyped
TypeScript definitions for object.assign
Account's avatar
DefinitelyTyped/DefinitelyTyped
TypeScript definitions for tape
Account's avatar
CookPete/auto-changelog
Command line tool for generating a changelog from git tags and commit history
Account's avatar
andris9/encoding
Convert encodings, uses iconv-lite
Account's avatar
ljharb/es-value-fixtures
Fixtures of ES values, for testing purposes
Account's avatar
reggi/evalmd
Evaluates javascript code blocks from markdown files.
Account's avatar
Raynos/for-each
A better forEach
Account's avatar
inspect-js/has-symbols
Determine if the JS environment has Symbol support. Supports spec, or shams.
Account's avatar
iarna/in-publish
Detect if we were run as a result of `npm publish`
Account's avatar
ljharb/npmignore
Command line tool for creating or updating a .npmignore file based on .gitignore.
Account's avatar
istanbuljs/nyc
the Istanbul command line interface
Account's avatar
ljharb/safe-publish-latest
Ensure that when you `npm publish`, the "latest" tag is only set for the truly latest version.
Account's avatar
tape-testing/tape
tap-producing test harness for node and browsers
Account's avatar
microsoft/TypeScript
TypeScript is a language for application scale JavaScript development

Support the repos that depend on this repository

Top contributors

ljharb's profile
ljharb
39 contributions

Recent events

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

No events yet
ljharb

ljharb/mock-property

Given an object and a property, replaces a property descriptor (or deletes it), and returns a thunk to restore it.

JavaScript
7
1
MIT License