UNPKG

cypress-craft

Version:

CypressCraft is an innovative extension built on top of Cypress (Cypress + Cucumber + POM)

11 lines (9 loc) 431 B
const { addCucumberPreprocessorPlugin } = require("@badeball/cypress-cucumber-preprocessor"); const webpack = require("cypress-webpack-preprocessor-v5"); 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;