Skip to content

Instantly share code, notes, and snippets.

View AndreVirtimo's full-sized avatar

AndreVirtimo

  • Virtimo AG
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({