I hope this isn’t the wrong place to ask for help on my particular issue, but i figure someone has encountered this testing a Vue application:
I installed the CucumberJs testing framework because I have a particular situation where it is the right tool. It works running simple examples, but I have issues as soon as I try to bring Vue into the picture. The problem is with importing modules or constants into Cucumber, I get
SyntaxError: Unexpected token import which is because it can’t handle the ES6 imports. Requires would work, but my code uses ES6 exports.
My best guess is that Babel can help with this, but I am at a loss as to how to do it. Cucumber docs and Googling have not been helpful at all.
For what it is worth, I tried the jest-cucumber package. It works, but it appears that you can’t reuse steps in other scenarios, which is very inefficient for what I am trying to do. Maybe I am wrong.