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
So the report here is the original report, including some badeball/cypress-cucumber-preprocessor related info:
Current behavior
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
Desired behavior
When the broken import is fixed, the feature should start running.
Or you could try disabling the preprocessor's file watching which seems to indirectly resolve the problem e.g.
constcreateBundler=require('@bahmutov/cypress-esbuild-preprocessor')module.exports=(on,config)=>{constfilePreprocessor=createBundler({// ...whatever your config is});on('file:preprocessor',(file)=>{file.shouldWatch=false;returnfilePreprocessor(file);});}
I originally opened an issue on badeball/cypress-cucumber-preprocessor. The maintainer pointed out that the issue is within this package.
So the report here is the original report, including some
badeball/cypress-cucumber-preprocessor
related info:Current behavior
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
The text was updated successfully, but these errors were encountered: