A babel plugin adding the ability to rewire module dependencies. This enables to mock modules for testing purposes.
842
stars
90
forks
source link
__get__ returns functions that only have access to un-rewired values #192
Closed
elliotbonneville closed 7 years ago
Values that have been rewired are not accessed by functions that are extracted via
__get__
. Instead, the original values are used.Example code:
Test:
Will result in an output of:
When the expected output is: