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

can not work with element-ui #227

Open jasontianxie opened 4 years ago

jasontianxie commented 4 years ago

if there is a usage of element-ui component in my test file like this

test.spec.js import {Loading} from 'element-ui'

when run test ,will get an error

Loading is not defined