Cypress preprocessor for bundling JavaScript via rollup
Requires Node version 6.5.0 or above.
npm install --save-dev @cypress/rollup-preprocessor
In your project's plugins file:
const rollup = require('@cypress/rollup-preprocessor')
module.exports = (on) => {
on('file:preprocessor', rollup())
}
Pass in options as the second argument to rollup
:
const rollup = require('@cypress/rollup-preprocessor')
module.exports = (on) => {
config: require('../../rollup.config.js')
on('file:preprocessor', rollup(config))
}
Run all tests once:
npm test
Run tests in watch mode:
npm run test-watch
This project is licensed under the terms of the MIT license.