You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After a good amount of reading / searching, I still can't wrap my head around how exactly I can run cucumber-js with Typescript. I understand --compiler was removed in favor of --require-module but I fail to find concrete examples that use simply cucumber-js + typescript (not with Protractor, not with Nightwatch or any other test framework) to illustrate the process.
How would one run the cucumber-js app with ts-node ?
Right now, I'm using cucumber-js --require-module ts-node/register in my package.json (cucumber-js is installed locally, not globally), is this correct ?
How exactly am I supposed to load support files ? Do I have to explicitely --require stuff inside support and step_definitions with the use of CLI flags or having the proper folder structure takes care of this ?
When I run the tests, I get an output specifying that all steps in my feature file are undefined, I think this might be a transpiling issue but I'm not sure.
The text was updated successfully, but these errors were encountered:
After a good amount of reading / searching, I still can't wrap my head around how exactly I can run cucumber-js with Typescript. I understand
--compiler
was removed in favor of--require-module
but I fail to find concrete examples that use simply cucumber-js + typescript (not with Protractor, not with Nightwatch or any other test framework) to illustrate the process.cucumber-js
app with ts-node ?Right now, I'm using
cucumber-js --require-module ts-node/register
in my package.json (cucumber-js is installed locally, not globally), is this correct ?--require
stuff insidesupport
andstep_definitions
with the use of CLI flags or having the proper folder structure takes care of this ?Right now, my folder structure looks like this :
When I run the tests, I get an output specifying that all steps in my feature file are undefined, I think this might be a transpiling issue but I'm not sure.
The text was updated successfully, but these errors were encountered: