Closed yesid-lopez closed 4 years ago
Hi @leonleo997
as far as I know, this is not possible with babel. But your babelrc files should be automatically picked up by the test file compiler. The problem you are facing here is that the files are not bundled together, but are transpiled with babel to be run on node directly.
If you used typescript (which you did not as far as I can tell), then you could specify the paths in the tsconfig's paths section.
This is however not a gherkin-testcafe specific issue, but an issue you would also face with testcafe directly.
Hi there, is there any way to use babel and gherkin-testcafe? The reason why I'm asking that is due to UI tests are using some files that use the babel aliases and it fails when it tries to execute the test:
as you can see, I'm importing a file using the "@helpers" alias but can't be compiled