**Summary:** `babel-plugin-mockable-imports` is a Babel plugin that transforms JavaScript modules to enable mocking of their ES and CommonJS imports in tests. It adds an `$imports` object to each module with `$mock` and `$restore` methods, allowing tests to temporarily replace dependencies with stubs or fakes. The plugin works with any test runner, bundler, and environment (Node or browser), and supports both JavaScript and TypeScript. **Who it's for:** This plugin is designed for developers writing unit tests who need fine-grained control over module dependencies, especially when testing code that imports from external or internal modules. It's particularly useful for projects using Babel to transpile code and wanting a lightweight, efficient way to mock imports without the overhead or limitations of alternatives like proxyquire.
How the donated funds are distributed
Kivach works on the Obyte network, and therefore you can track all donations.