@badeball/cypress-configuration
TypeScript icon, indicating that this package has built-in type declarations

6.1.1 • Public • Published

cypress-configuration

Build status Npm package weekly downloads

A re-implementation of Cypress' configuration resolvement and search for test files. These mechanisms aren't exposed by Cypress, but are nonetheless necessary for EG. @badeball/cypress-cucumber-preprocessor, @badeball/cypress-parallel and the upcoming VSCode extention for the Cypress + Cucumber integration.

Installation

$ npm install @badeball/cypress-configuration

Usage

import { getConfiguration } from "@badeball/cypress-configuration";

const { fixturesFolder, integrationFolder } = getConfiguration({
  cwd: process.cwd(),
  env: process.env,
  argv: ["--config", "integrationFolder=cypress/custom-location"]
});

console.log(fixturesFolder); // => "cypress/fixtures"
console.log(integrationFolder); // => "cypress/custom-location"

Package Sidebar

Install

npm i @badeball/cypress-configuration

Weekly Downloads

297,558

Version

6.1.1

License

MIT

Unpacked Size

59.9 kB

Total Files

31

Last publish

Collaborators

  • badeball