cypress 3.8.2 → 3.8.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. package/lib/exec/xvfb.js +9 -2
  2. package/package.json +1 -1
package/lib/exec/xvfb.js CHANGED
@@ -20,20 +20,27 @@ var _require2 = require('../errors'),
20
20
 
21
21
  var util = require('../util');
22
22
 
23
- var xvfb = Promise.promisifyAll(new Xvfb({
23
+ var xvfbOptions = {
24
24
  timeout: 30000, // milliseconds
25
+ // need to explicitly define screen otherwise electron will crash
26
+ // https://github.com/cypress-io/cypress/issues/6184
27
+ xvfb_args: ['-screen', '0', '1280x1024x24'],
25
28
  onStderrData: function onStderrData(data) {
26
29
  if (debugXvfb.enabled) {
27
30
  debugXvfb(data.toString());
28
31
  }
29
32
  }
30
- }));
33
+ };
34
+
35
+ var xvfb = Promise.promisifyAll(new Xvfb(xvfbOptions));
31
36
 
32
37
  module.exports = {
33
38
  _debugXvfb: debugXvfb, // expose for testing
34
39
 
35
40
  _xvfb: xvfb, // expose for testing
36
41
 
42
+ _xvfbOptions: xvfbOptions, // expose for testing
43
+
37
44
  start: function start() {
38
45
  debug('Starting Xvfb');
39
46
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cypress",
3
- "version": "3.8.2",
3
+ "version": "3.8.3",
4
4
  "main": "index.js",
5
5
  "scripts": {
6
6
  "postinstall": "node index.js --exec install",