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

cypress-vite

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cypress-vite - npm Package Compare versions

Comparing version 1.3.2 to 1.4.0

9

dist/index.d.ts

@@ -0,7 +1,10 @@

import { InlineConfig } from 'vite';
type FileObject = Cypress.FileObject;
type CypressPreprocessor = (file: FileObject) => string | Promise<string>;
type CypressPreprocessor = (file: FileObject) => Promise<string>;
/**
* Cypress preprocessor for running e2e tests using vite.
*
* @param {string} userConfigPath
* @param {InlineConfig | string} config - Vite config object, or path to user
* Vite config file for backwards compatibility
* @example

@@ -15,4 +18,4 @@ * setupNodeEvents(on) {

*/
declare function vitePreprocessor(userConfigPath?: string): CypressPreprocessor;
declare function vitePreprocessor(userConfig?: InlineConfig | string): CypressPreprocessor;
export { vitePreprocessor as default };
{
"name": "cypress-vite",
"version": "1.3.2",
"version": "1.4.0",
"description": "Run Cypress specs using Vite",

@@ -59,2 +59,3 @@ "author": "Mohammad Ataei",

"dependencies": {
"chokidar": "^3.5.3",
"debug": "^4.3.4"

@@ -61,0 +62,0 @@ },

@@ -75,4 +75,3 @@ # cypress-vite

You can simply pass the `vitePreprocessor` function the path to your Vite config
file:
You can pass a Vite config to the `vitePreprocessor` function:

@@ -89,3 +88,6 @@ ```typescript

'file:preprocessor',
vitePreprocessor(path.resolve(__dirname, './vite.config.ts')),
vitePreprocessor({
configFile: path.resolve(__dirname, './vite.config.ts'),
mode: 'development',
}),
)

@@ -92,0 +94,0 @@ },

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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