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
Given I have a step definition file that contains an invalid (relative) import
When I start cypress and try to run that feature
Then I get the following error
> Error: Build failed with 1 error:
> cypress/e2e/test.js:1:42: ERROR: Could not resolve "../support/helpers"
When I then fix the broken import
Then I still get the error
This is using the esbuild solution.
Desired behavior
When the broken import is fixed, the feature should start running.
This appears to happen even if you don't use the preprocessor, but simply @bahmutov/cypress-esbuild-preprocessor, which means the problem probably lies there. I think you should open up an issue at https://github.com/bahmutov/cypress-esbuild-preprocessor.
Then configure your preferred bundler to process features files. See [examples/](../examples) for how-to using Browserify, Esbuild or Webpack. Esbuild is the recommended bundler if you have no particular requirements (it's by far the fastest).
Current behavior
This is using the esbuild solution.
Desired behavior
When the broken import is fixed, the feature should start running.
Test code to reproduce
https://github.com/younited/cypress_cucumber_import_bug
Instructions on how to replicate the issue are in the readme.
Versions
Checklist
cypress-cucumber-preprocessor@4.3.1
(package name has changed and it is no longer the most recent version, see #689).The text was updated successfully, but these errors were encountered: