Missing processor event handlers Error After install Cypress 14.4.0 #1301
Unanswered
SaraLacayo123
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi everyone, I am getting this error:
Missing preprocessor event handlers (this usually means you've not invoked addCucumberPreprocessorPlugin() or not returned the config object in setupNodeEvents()) (this might be a bug, please report at https://github.com/badeball/cypress-cucumber-preprocessor)
Because this error occurred during a before all hook we are skipping the remaining tests in the current suite: accept order and Inspection...

I upgraded Cypress version, then the cucumber version, I`ll try everything, and this error persists
My Cypress.config.js look like this
const { defineConfig } = require("cypress");
const preprocessor = require("@badeball/cypress-cucumber-preprocessor");
const webpackPreprocessor = require("@cypress/webpack-preprocessor");
const webpack = require("webpack");
async function setupNodeEvents(on, config) {
// Preprocesador de cucumber
await preprocessor.addCucumberPreprocessorPlugin(on, config);
const options = {
webpackOptions: {
resolve: {
extensions: [".ts", ".js"],
},
module: {
rules: [
{
test: /.feature$/,
use: [
{
loader: "@badeball/cypress-cucumber-preprocessor/webpack",
options: config,
},
],
},
],
},
plugins: [new webpack.DefinePlugin({})], // Necesario para evitar errores de definición
},
};
on("file:preprocessor", webpackPreprocessor(options));
return config;
}
module.exports = defineConfig({
experimentalStudio: true,
retries: {
runMode: 1,
},
projectId: "",
env: {
randomAddress: "",
OrderDetail: "",
PublicRecords: "",
ProductsPricing: "",
userType: "",
},
e2e: {
testIsolation: false,
specPattern: "cypress/e2e/bdd/*.feature",
setupNodeEvents,
},
});
Beta Was this translation helpful? Give feedback.
All reactions