speedskater / babel-plugin-rewire

A babel plugin adding the ability to rewire module dependencies. This enables to mock modules for testing purposes.
843 stars 90 forks source link

Support all variable names #236

Open stauren opened 3 years ago

stauren commented 3 years ago

fix the bug that variables with name in Object.prototype chain such as 'toString', 'valueOf' fail to be added into this.accessors

Yann001 commented 3 years ago

I had the same problem...