Skip to content

Instantly share code, notes, and snippets.

View AndreVirtimo's full-sized avatar

Andre Schlegel-Tylla AndreVirtimo

  • Virtimo AG
  • Berlin
  • 10:29 (UTC +01:00)
View GitHub Profile
@AndreVirtimo
AndreVirtimo / xvfb.js
Created March 6, 2019 08:29
Change the resolution of screenshots taken by cypress.io when running headless on a server with virtual Framebuffer Xvfb
//source https://github.com/cypress-io/cypress/blob/develop/cli/lib/exec/xvfb.js
const os = require('os')
const Promise = require('bluebird')
const Xvfb = require('@cypress/xvfb')
const R = require('ramda')
const debug = require('debug')('cypress:cli')
const debugXvfb = require('debug')('cypress:xvfb')
const { throwFormErrorText, errors } = require('../errors')
const xvfb = Promise.promisifyAll(new Xvfb({