xvfb-maybe

Runs xvfb-run only if you need to, useful for Electron unit tests

MIT 6 个版本
安装
npm install xvfb-maybe
yarn add xvfb-maybe
pnpm add xvfb-maybe
bun add xvfb-maybe
README

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
版本列表
0.2.1 2017-04-27
0.2.0 2017-04-26
0.1.3 2016-02-29
0.1.2 2016-02-29
0.1.1 2016-02-29
0.1.0 2016-02-18