Socket
Socket
Sign inDemoInstall

@cypress/xvfb

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@cypress/xvfb

Easily start and stop an X Virtual Frame Buffer from your node apps.


Version published
Weekly downloads
4.9M
decreased by-0.91%
Maintainers
1
Weekly downloads
 
Created

What is @cypress/xvfb?

@cypress/xvfb is an npm package that allows you to run Cypress tests in a virtual framebuffer (Xvfb). This is particularly useful for running tests in environments without a graphical user interface, such as CI/CD pipelines.

What are @cypress/xvfb's main functionalities?

Running Cypress in Xvfb

This feature allows you to start an Xvfb session and run Cypress tests within it. The code sample demonstrates how to start Xvfb, run Cypress tests, and then stop Xvfb.

const Xvfb = require('@cypress/xvfb');
const xvfb = new Xvfb();
xvfb.start((err) => {
  if (err) console.error(err)
  else {
    // Run Cypress tests here
    const cypress = require('cypress');
    cypress.run().then((results) => {
      console.log(results);
      xvfb.stop();
    });
  }
});

Other packages similar to @cypress/xvfb

FAQs

Package last updated on 28 Sep 2018

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