Vue-jest: Syntax error in nested components

Created on 9 Jan 2018  ยท  2Comments  ยท  Source: vuejs/vue-jest

Hi!

I configurated jest for testing vue components:

"jest": {
"transform": {
".*.(vue)$": "/node_modules/vue-jest",

But imported nested components are not transformed and I've got a error:

FAIL src/components/card/contacts.test.js
โ— Test suite failed to run

/www/spa/node_modules/components/b-button/b-button.vue:1
({"Object.":function(module,exports,require,__dirname,__filename,global,jest){