bahmutov / cy-rollup

Cypress Rollup preprocessor
11 stars 2 forks source link

Cypress 7 support? #162

Open alejandroiglesias opened 3 years ago

alejandroiglesias commented 3 years ago

Hi, I have been using this library for a while and I'm wondering if there's planned support for Cypress 7. In case the library already supports using Cypress 7, can you please instruct and/or update the readme to know how to use it with that newer version? Thanks and I appreciate your help.

bahmutov commented 3 years ago

I can see in this repo's README that it use Cypress v7 already https://github.com/bahmutov/cy-rollup#bahmutovcy-rollup-----

Is it not clear that it supports Cypress 7?

alejandroiglesias commented 3 years ago

It is not clear because the README shows initialization like this:

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

While in the Cypress 7 Migration Guide it's stated that component testing should be configured in a different way through

on('dev-server:start', (options) => {
  return startDevServer({ options, webpackConfig })
})

So a dev server has to be used. Since I'm new to Rollup and Cypress, can you please provide more info on how this would work with the new setup?

gorjan-mishevski commented 3 years ago

This plugin is broken for Cypress 7 and up. Nor does the cypress component lib works.

bahmutov commented 3 years ago

Right, this plugin so far only supports end-to-end tests, not the component test running approach Cypress v7 has introduced. I welcome pull requests!