You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Remove module.exports.default. (#26) If you used to do require('mimic-fn').default, you should now use require('mimic-fn') directly.
Features
String(wrapper) now mimics String(originalFunction). A comment is prepended to indicate the original function has been wrapped. (#32)
Add boolean option ignoreNonConfigurable to ignore the wrapper function's non-configurable properties instead of throwing an error. This defaults to false. (#33, #34, #35)
Allow functions with different prototype such as classes, constructor functions and arrow functions. (#31, #36)