asapach

asapach/babel-plugin-rewire-exports

Babel plugin for stubbing [ES6, ES2015] module exports

JavaScript
66
7
MIT License

This Babel plugin allows developers to stub ES6 module exports for testing by adding `rewire` and `restore` functions to modules, enabling dynamic replacement of exported values without modifying module internals. It's designed for JavaScript developers and testers who need to isolate and mock dependencies in ES6 modules during unit testing, particularly when using testing frameworks like Jest, Mocha, or Jasmine.

Total donated
Undistributed
Share with your subscribers:

Recipients

How the donated funds are distributed

Support the dependencies of asapach/babel-plugin-rewire-exports

Account's avatar
Generate an AST from a string template.
Account's avatar
Babel command line.
Account's avatar
Babel compiler core.
Account's avatar
A Babel preset for each environment.
Account's avatar
Babel preset for all React plugins.
Account's avatar
Babel preset for TypeScript.
Account's avatar
babel require hook
Account's avatar
simple, flexible, fun test framework
Account's avatar
A deep deletion module for node (like `rm -rf`)

Support the repos that depend on asapach/babel-plugin-rewire-exports

Top contributors

asapach's profile
asapach
148 contributions
dependabot[bot]'s profile
dependabot[bot]
13 contributions
sergei-startsev's profile
sergei-startsev
4 contributions
jDeppen's profile
jDeppen
1 contributions

Recent events

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

No events yet