You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
import{defineConfig}from"cypress";import{registerSmartDriverTasks}from"@devtools-ai/cypress-sdk/dist/plugins.js";importpreprocessorfrom"@badeball/cypress-cucumber-preprocessor";importbrowserifyfrom"@badeball/cypress-cucumber-preprocessor/browserify.js";exportasyncfunctionsetupNodeEvents(on,config){// This is required for the preprocessor to be able to generate JSON reports after each run, and more,awaitpreprocessor.addCucumberPreprocessorPlugin(on,config);on("file:preprocessor",browserify.default(config));awaitregisterSmartDriverTasks(on,config);// Make sure to return the config object as it might have been modified by the plugin.returnconfig;}exportdefaultdefineConfig({e2e: {specPattern: "**/*.feature",supportFile: false,
setupNodeEvents,baseUrl: "https://my-app-url.com",browser: "Chrome"},});
I am getting the error
SyntaxError: Unexpected reserved word
while trying to integrate the sdk with the existing cucumber-based cypress test suite.To know further on the preprocessor settings please refer to https://github.com/badeball/cypress-cucumber-preprocessor/tree/master/examples/browserify-esm
The text was updated successfully, but these errors were encountered: