cypress 13.6.0 → 13.6.2
Sign up to get free protection for your applications and to get access to all the features.
- package/lib/exec/spawn.js +3 -16
- package/lib/tasks/verify.js +1 -4
- package/package.json +3 -3
package/lib/exec/spawn.js
CHANGED
@@ -6,7 +6,6 @@ const cp = require('child_process');
|
|
6
6
|
const path = require('path');
|
7
7
|
const Promise = require('bluebird');
|
8
8
|
const debug = require('debug')('cypress:cli');
|
9
|
-
const debugElectron = require('debug')('cypress:electron');
|
10
9
|
const util = require('../util');
|
11
10
|
const state = require('../tasks/state');
|
12
11
|
const xvfb = require('./xvfb');
|
@@ -101,12 +100,10 @@ module.exports = {
|
|
101
100
|
const spawn = (overrides = {}) => {
|
102
101
|
return new Promise((resolve, reject) => {
|
103
102
|
_.defaults(overrides, {
|
104
|
-
onStderrData: false
|
105
|
-
electronLogging: false
|
103
|
+
onStderrData: false
|
106
104
|
});
|
107
105
|
const {
|
108
|
-
onStderrData
|
109
|
-
electronLogging
|
106
|
+
onStderrData
|
110
107
|
} = overrides;
|
111
108
|
const envOverrides = util.getEnvOverrides(options);
|
112
109
|
const electronArgs = [];
|
@@ -137,9 +134,6 @@ module.exports = {
|
|
137
134
|
windowsHide: false
|
138
135
|
});
|
139
136
|
}
|
140
|
-
if (electronLogging) {
|
141
|
-
stdioOptions.env.ELECTRON_ENABLE_LOGGING = true;
|
142
|
-
}
|
143
137
|
if (util.isPossibleLinuxWithIncorrectDisplay()) {
|
144
138
|
// make sure we use the latest DISPLAY variable if any
|
145
139
|
debug('passing DISPLAY', process.env.DISPLAY);
|
@@ -210,7 +204,7 @@ module.exports = {
|
|
210
204
|
|
211
205
|
// if we have a callback and this explicitly returns
|
212
206
|
// false then bail
|
213
|
-
if (onStderrData && onStderrData(str)
|
207
|
+
if (onStderrData && onStderrData(str)) {
|
214
208
|
return;
|
215
209
|
}
|
216
210
|
|
@@ -253,13 +247,6 @@ module.exports = {
|
|
253
247
|
if (util.isBrokenGtkDisplay(str)) {
|
254
248
|
brokenGtkDisplay = true;
|
255
249
|
}
|
256
|
-
|
257
|
-
// we should attempt to always slurp up
|
258
|
-
// the stderr logs unless we've explicitly
|
259
|
-
// enabled the electron debug logging
|
260
|
-
if (!debugElectron.enabled) {
|
261
|
-
return false;
|
262
|
-
}
|
263
250
|
}
|
264
251
|
});
|
265
252
|
}
|
package/lib/tasks/verify.js
CHANGED
@@ -84,11 +84,8 @@ const runSmokeTest = (binaryDir, options) => {
|
|
84
84
|
debug('using Cypress executable %s', executable);
|
85
85
|
debug('smoke test command:', smokeTestCommand);
|
86
86
|
debug('smoke test timeout %d ms', options.smokeTestTimeout);
|
87
|
-
const env = _.extend({}, process.env, {
|
88
|
-
ELECTRON_ENABLE_LOGGING: true
|
89
|
-
});
|
90
87
|
const stdioOptions = _.extend({}, {
|
91
|
-
env,
|
88
|
+
env: process.env,
|
92
89
|
timeout: options.smokeTestTimeout
|
93
90
|
});
|
94
91
|
return Promise.resolve(util.exec(executable, args, stdioOptions)).catch(onSmokeTestError(smokeTestCommand, linuxWithDisplayEnv)).then(result => {
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "cypress",
|
3
|
-
"version": "13.6.
|
3
|
+
"version": "13.6.2",
|
4
4
|
"main": "index.js",
|
5
5
|
"scripts": {
|
6
6
|
"postinstall": "node index.js --exec install",
|
@@ -135,8 +135,8 @@
|
|
135
135
|
},
|
136
136
|
"buildInfo": {
|
137
137
|
"commitBranch": "develop",
|
138
|
-
"commitSha": "
|
139
|
-
"commitDate": "2023-
|
138
|
+
"commitSha": "ce8ee60defc71839845dc684d9e1c8a2eda7693e",
|
139
|
+
"commitDate": "2023-12-26T16:49:39.000Z",
|
140
140
|
"stable": true
|
141
141
|
},
|
142
142
|
"description": "Cypress is a next generation front end testing tool built for the modern web",
|