2.0.0 • Published 5 years ago

@bahmutov/cy-rollup v2.0.0

Weekly downloads
815
License
MIT
Repository
github
Last release
5 years ago

@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