-
Notifications
You must be signed in to change notification settings - Fork 3.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
New Cypress 3.8.0 + cypress-cucumber-preprocessor + cypress/webpack-preprocessor = error when executing tests #5998
Comments
This error is referencing this function from cypress-cucumber-preprocessor. https://github.com/TheBrainFamily/cypress-cucumber-preprocessor/blob/ff1f41ff53036356ee682253b88cdccdb77b0bd5/lib/createTestsFromFeature.js#L5 Can you provide your setup? |
In const cucumber = require('cypress-cucumber-preprocessor').default; module.exports = (on, config) => {
on('file:preprocessor', webpack(wpOptions), cucumber()); In My feature files are written in Gherkin and my step_definitions are using: import { Given } from 'cypress-cucumber-preprocessor/steps'; I have the same error when I am using Cypress 3.7.0 and Sorry for bothering you, I will create an issue on cypress-cucumber-preprocessor github. |
yeah this is a known regression, the newest version - released 3 days ago, apparently doesn't work with windows - we've had a few tickets about this already. I'd recommend to use 1.18.0 for now - the change in 1.19.0 is not something you'd need, if you didn't need it so far. I don't have windows handy to debug this properly, I think I will just revert that change for now. this issue can be closed here. |
Closing as an issue in |
New Cypress 3.8.0 with cypress-cucumber-preprocessor and cypress/webpack-preprocessor is causing an error when trying to execute tests.
Everything is working when using Cypress 3.7.0 and cypress-cucumber-preprocessor 1.18.0. I also tried using new cypress-cucumber-preprocessor 1.19.0 which returned the same result.
Error:
(I had to remove some data from paths so the error is edited a little bit)
Versions
Tested on Windows 10.
The text was updated successfully, but these errors were encountered: