cypress-io / xvfb

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Starting and stopping xvfb mutates process.env.DISPLAY

brian-mann opened this issue · comments

This is the offending line: https://github.com/cypress-io/xvfb/blob/master/index.js#L104

Internally node will automatically stringify values set on process.env so this becomes the string undefined.

There needs to be a guard not to set process.env if DISPLAY is not truthy