cypress-io / cypress

Fast, easy and reliable testing for anything that runs in a browser.
https://cypress.io
MIT License
46.8k stars 3.17k forks source link

[✨Feature] Support for Rspack/Rsbuild🦀 Component Testing #29809

Open SoonIter opened 3 months ago

SoonIter commented 3 months ago

What would you like?

Users of Rspack want to use cypress component testing based on rspack.config and provide faster build speed.

Rspack is a high performance JavaScript bundler written in Rust. It offers strong compatibility with the webpack ecosystem, allowing for seamless replacement of webpack, and provides lightning fast build speeds

:D I hope cypress can provide a bundler option for Rspack so that users can use it directly in component testing just like webpack.

https://docs.cypress.io/guides/component-testing/react/overview#React-with-Webpack

We can support Rspack first, which closely resembles webpack. I think that the workload will be manageable and can seek assistance from the Rspack community. Given that Rsbuild is fundamentally built upon Rspack, once we complete the work on Rspack, support for Rsbuild should naturally follow with ease.

Why is this needed?

Some benefits I can think of

  1. Performance, shorter test time
  2. Migrating from webpack to Rspack, webpack users can also use Rspack in cypress to provide component testing as devServer

Other

No response

jennifer-shehane commented 2 months ago

@SoonIter Thanks for opening the request