Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

cypress-rspack-dev-server

Package Overview
Dependencies
Maintainers
0
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cypress-rspack-dev-server

Launches Rspack Dev Server for Component Testing

  • 0.0.7
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
0
Created
Source

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')
      })
    }
  }
})

In the Cypress-rspack-dev-server Version column, it lists the corresponding versions that are compatible with the Rspack versions.

For example:

For Rspack version 1.0.0-beta.4 or later, use Cypress-rspack-dev-server version 0.0.6.

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.

Keywords

FAQs

Package last updated on 15 Sep 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc