[Vuejs]-Unit test in Vue with Karma and Webpack

0👍

after rest for a while, i think through it. Why it will lint Vue is not defined? And how does the test component work? I wonder it may be caused by my Vue import Strategies. In order to reduce the time of page opened in browser, i import vue and other packages using CDN, i guess it can’t accepted by Karma.I tried to roll back,and run npm run unit,fortunately, everything runs well.

Chrome 65.0.3325 (Mac OS X 10.13.3): Executed 1 of 1 SUCCESS (0.034 secs / 0.011 secs)
TOTAL: 1 SUCCESS

thank you, guys.Think and solve the problem is really magic and exciting.

Leave a comment