cypress-craft
Version:
CypressCraft is an innovative extension built on top of Cypress (Cypress + Cucumber + POM)
31 lines (29 loc) • 655 B
JavaScript
const NodePolyfillPlugin = require('node-polyfill-webpack-plugin');
function webpackOptions(config) {
return {
webpackOptions: {
plugins: [new NodePolyfillPlugin() ],
resolve: {
extensions: [".ts", ".js"],
fallback: {
"util": false,
"fs": false,
}
},
module: {
rules: [
{
test: /\.feature$/,
use: [
{
loader: "@badeball/cypress-cucumber-preprocessor/webpack",
options: config,
},
],
},
],
},
},
}
}
module.exports = { webpackOptions };