Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
@cypress/vite-dev-server
Advanced tools
⚡️ + 🌲 Cypress Component Testing w/ Vite
To install vite in you component testing environment,
yarn add @cypress/vite-dev-server
cypress/plugins/index.js
import { startDevServer } from '@cypress/vite-dev-server'
module.exports = (on, config) => {
on('dev-server:start', async (options) => startDevServer({ options }))
return config
}
Note this package is not meant to be used outside of cypress component testing.
Install @cypress/vue
or @cypress/react
to get this package working properly
__cypress/iframes/
src/components/button.spec.tsx
__cypress/iframes/...
will be passed to the dev-server as __cypress/src/index.html
__cypress/src/
will be passed to the dev-server to deal as is, without changes.__cypress/src/
(base path should be this prefix).__cypress/src/index.html
with an html page.
This page
<div id="__cy_root"></div>
. Tis will be used by mount function to mount the app containing the components we want.devServerEvents.emit('dev-server:compile:success')
vite.config
and adds base of __cypress/src/
and a cypress vite plugin.import()
functionVite is reponsible for compiling and bundling all the files. We use its error overlay to display any transpiling error. Omly runtime errors have to be handled through cypress
FAQs
Launches Vite Dev Server for Component Testing
We found that @cypress/vite-dev-server demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
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.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.