cypress-craft
Version:
CypressCraft is an innovative extension built on top of Cypress (Cypress + Cucumber + POM)
11 lines (9 loc) • 429 B
JavaScript
const { addCucumberPreprocessorPlugin } = require("@badeball/cypress-cucumber-preprocessor");
const webpack = require("@cypress/webpack-preprocessor");
const {webpackOptions} = require('../../webpack.config');
const setupNodeEvents = async(on, config) => {
await addCucumberPreprocessorPlugin(on, config);
on("file:preprocessor", webpack(webpackOptions(config)));
return config;
}
module.exports = setupNodeEvents;