I am struggling with the same problem +1
Laravel and test with JEST
Hi. I have a little problem with jest and laravel. Maybe you will be able guide me somehow.
I want use jest test in laravel. I found guide how to do it: https://vue-test-utils.vuejs.org/guides/testing-single-file-components-with-jest.html but on start this throw me a error:
Jest encountered an unexpected token: ({"Object.":function(module,exports,require,__dirname,__filename,global,jest){import Vue from 'vue'; and this pointing on "import", SyntaxError: Unexpected token import
I think that jest don`t include webpack.config.js from node_modules. Is there way to force jest to load this settings ? Sctipt are compiling correct and all work fine in browser, only test crash. Could you give me some tip how make this work?
Please or to participate in this conversation.