cucumber-js-tsflow icon indicating copy to clipboard operation
cucumber-js-tsflow copied to clipboard

Unexpected identifier

Open Taewa opened this issue 3 years ago • 0 comments

Hi all,

I am a bit lost while trying to run the cucumber testing with LitElement, Typescript and @open-wc/testing.

POC repo is here: https://github.com/Taewa/cucumber-ts-lit-element

When I run the test npm run test, I get a following error.

(function (exports, require, module, __filename, __dirname) { import chai from './import-wrappers/chai.js';
                                                                     ^^^^
SyntaxError: Unexpected identifier

If I understand correctly, it's the node that doesn't understand import and probably Babel can help me.

But I am not sure how I can add Babel with cucumber-js-tsflow. (Or maybe I don't need cucumber-js-tsflow?) Is there somewhere I can configure?

"cucumber": "6.0.5",
"cucumber-tsflow": "3.4.0",

Thanks.

Taewa avatar Mar 18 '21 23:03 Taewa