Starting and stopping xvfb mutates process.env.DISPLAY
brian-mann opened this issue · comments
Brian Mann commented
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