Comparing version 2.0.2 to 2.0.3
{ | ||
"name": "cye2e", | ||
"version": "2.0.2", | ||
"version": "2.0.3", | ||
"type": "module", | ||
@@ -5,0 +5,0 @@ "description": "", |
@@ -39,13 +39,16 @@ #!/usr/bin/env node | ||
browserify: answers.configLanguage === 'JavaScript' ? ` | ||
const { defineConfig } = require('cypress'); | ||
const preprocessor = require("@badeball/cypress-cucumber-preprocessor"); | ||
const browserify = require("@badeball/cypress-cucumber-preprocessor/browserify"); | ||
const { defineConfig } = require("cypress"); | ||
const browserify = require("@cypress/browserify-preprocessor"); | ||
const { addCucumberPreprocessorPlugin } = require("@badeball/cypress-cucumber-preprocessor"); | ||
const { preprendTransformerToOptions } = require("@badeball/cypress-cucumber-preprocessor/browserify"); | ||
async function setupNodeEvents(on, config) { | ||
await preprocessor.addCucumberPreprocessorPlugin(on, config); | ||
await addCucumberPreprocessorPlugin(on, config); | ||
on('file:preprocessor', browserify.default(config)); | ||
on( | ||
"file:preprocessor", | ||
browserify(preprendTransformerToOptions(config, browserify.defaultOptions)) | ||
); | ||
return config; | ||
} | ||
@@ -61,10 +64,11 @@ | ||
` : ` | ||
import { defineConfig } from 'cypress'; | ||
import browserify from "@cypress/browserify-preprocessor"; | ||
import { addCucumberPreprocessorPlugin } from "@badeball/cypress-cucumber-preprocessor"; | ||
import browserify from "@badeball/cypress-cucumber-preprocessor/browserify"; | ||
import { preprendTransformerToOptions } from "@badeball/cypress-cucumber-preprocessor/browserify"; | ||
async function setupNodeEvents( | ||
on: Cypress.PluginEvents, | ||
config: Cypress.PluginConfigOptions | ||
config: Cypress.PluginConfigOptions, | ||
): Promise<Cypress.PluginConfigOptions> { | ||
await addCucumberPreprocessorPlugin(on, config); | ||
@@ -74,7 +78,9 @@ | ||
"file:preprocessor", | ||
browserify(config, { | ||
browserify({ | ||
...preprendTransformerToOptions(config, browserify.defaultOptions), | ||
typescript: require.resolve("typescript"), | ||
}) | ||
}), | ||
); | ||
return config; | ||
@@ -81,0 +87,0 @@ } |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
36027
14
693