I am working on getting @freezing-piano-2792-cucumber-cypress-preprocessor working. When I run my regular spec files everything is working on V10. When I run my feature files i get
Error: Webpack Compilation Error
./cypress/e2e/Cucumber/eventTypeInternal.feature 1:15
Module parse failed: Unexpected token (1:15)
You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. S
I have copied the 2 bits for my package.Json file, and edited my steps import to
const {
Then,
Before,
Given,
And,
After,
} = require("@freezing-piano-2792/cypress-cucumber-preprocessor");
my plugins index.js has
const cucumber = require("@badeball/cypress-cucumber-preprocessor").default;
module.exports = (on, config) => {
config = dotenvPlugin(config);
on("file:preprocessor", cucumber());
return config;
};
any help appreciated!