npm

Need private packages and team management tools?Check out npm Orgs. »

xvfb-maybe

0.2.1 • Public • Published

xvfb-maybe

This package runs an arbitrary executable / args under xvfb-run if the platform is Linux and DISPLAY isn't set. This is super useful for making Electron unit tests run correctly in CI environments while still working locally

Usage:

## On Windows or OS X, this just invokes electron-mocha 
## On Linux, if we are in a headless environment, this will be equivalent  
## to xvfb-run electron-mocha ./test/*.js 
xvfb-maybe electron-mocha ./test/*.js

Keywords

install

npm i xvfb-maybe

Downloadsweekly downloads

6,176

version

0.2.1

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability