@bahmutov/cypress-code-coverage
Version:
My version of Cypress code coverage plugin
10 lines (7 loc) • 327 B
JavaScript
const browserify = require('@cypress/browserify-preprocessor')
// TODO check if there is .babelrc file
// if not, maybe create one?
// Tells Cypress to use .babelrc when bundling spec code
const options = browserify.defaultOptions
options.browserifyOptions.transform[1][1].babelrc = true
module.exports = browserify(options)