0.0.5 • Published 15 days ago

cypress-rspack-dev-server v0.0.5

Weekly downloads
-
License
MIT
Repository
github
Last release
15 days ago

cypress-rspack-dev-server

Changelog CI Status

Based off the amazing work of the cypress team at https://github.com/cypress-io/cypress/blob/develop/npm/webpack-dev-server/

Implements the APIs for Cypress Component-testing with Rust-based web bundler Rspack's dev server.

Installation

Install the library to your devDependencies

npm install -D cypress-rspack-dev-server

Usage

import { devServer } from 'cypress-rspack-dev-server'
import { defineConfig } from 'cypress'

export default defineConfig({
  component: {
    devServer(devServerConfig) {
      return devServer({
        ...devServerConfig,
        framework: 'react',
        rspackConfig: require('./rspack.config.js')
      })
    }
  }
})

Dev server parameters

OptionNOTES
frameworkreact, currently only react, will support other frameworks
cypressConfigCypress Plugin Configuration
specsArray of Cypress Spec
devServerEventsNodejs EventEmitter
rspackConfig (Optional)Rspack Configuration, can be require from rspack config file
onConfigNotFound (Optional)The callback function when config not found

License

license

This project is licensed under the terms of the MIT license.

0.0.5

15 days ago

0.0.4

5 months ago

0.0.3

5 months ago

0.0.2

11 months ago

0.0.1

11 months ago