This happens because our Jest is not aware we are using ES6!
babel-jest is now automatically loaded by Jest and fully integrated.
if you saw
Couldn't find preset "es2015" relative to directory, just
npm install babel-preset-es2015 --save-dev
Share this highlighthttp://www.safaribooksonline.com/a/vuejs-2-and/13240002/