@bahmutov/cy-rollup

v2.0.0
Cypress Rollup preprocessor

@bahmutov/cy-rollup ci status

Implementation copied from bahmutov/rolling-task

Use

// cypress/plugins/index.js

const rollupPreprocessor = require('@bahmutov/cy-rollup')

/**
 * @type {Cypress.PluginConfig}
 */
module.exports = (on, config) => {
  const options = {
    // Provide an alternative rollup config file.
    // The default is rollup.config.js at the project root.
    configFile: "cypress/rollup-test.config.js"
  }

  on('file:preprocessor', rollupPreprocessor(options))
}

Debugging

Run with environment variable

DEBUG=@bahmutov/cy-rollup
npm i @bahmutov/cy-rollup

Metadata

  • MIT
  • Whatever
  • Gleb Bahmutov
  • released 5/7/2020

Downloads

Maintainers