How to use the cypress/lib/cli.init function in cypress

To help you get started, we’ve selected a few cypress examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github intershop / intershop-pwa / e2e / open-cypress.js View on Github external
} else {
  console.error(
    'Did not find a valid ICM_BASE_URL. Setup a environment.local.ts or supply it via environment variable.'
  );
  process.exit(1);
}

console.log('using', icmBaseUrl, 'as ICM_BASE_URL');

const args = process.argv.slice(0, 2);
args.push('open', '-e', 'ICM_BASE_URL=' + icmBaseUrl);
if (process.argv.length > 2) {
  args.push(...process.argv.slice(2));
}

cypress.init(args);

cypress

Cypress is a next generation front end testing tool built for the modern web

MIT
Latest version published 11 days ago

Package Health Score

95 / 100
Full package analysis