cypress 13.15.0 → 13.15.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cli.js +1 -1
- package/lib/exec/spawn.js +14 -0
- package/lib/util.js +1 -1
- package/mount-utils/mount-utils/package.json +1 -1
- package/mount-utils/package.json +1 -1
- package/package.json +6 -5
- package/react18/package.json +1 -1
- package/react18/react18/package.json +1 -1
- package/svelte/package.json +1 -1
- package/svelte/svelte/package.json +1 -1
package/lib/cli.js
CHANGED
@@ -100,7 +100,7 @@ const descriptions = {
|
|
100
100
|
env: 'sets environment variables. separate multiple values with a comma. overrides any value in cypress.config.{js,ts,mjs,cjs} or cypress.env.json',
|
101
101
|
exit: 'keep the browser open after tests finish',
|
102
102
|
forceInstall: 'force install the Cypress binary',
|
103
|
-
global: 'force Cypress into global mode as if
|
103
|
+
global: 'force Cypress into global mode as if it were globally installed',
|
104
104
|
group: 'a named group for recorded runs in Cypress Cloud',
|
105
105
|
headed: 'displays the browser instead of running headlessly',
|
106
106
|
headless: 'hide the browser instead of running headed (default for cypress run)',
|
package/lib/exec/spawn.js
CHANGED
@@ -12,6 +12,7 @@ const state = require('../tasks/state');
|
|
12
12
|
const xvfb = require('./xvfb');
|
13
13
|
const verify = require('../tasks/verify');
|
14
14
|
const errors = require('../errors');
|
15
|
+
const readline = require('readline');
|
15
16
|
const isXlibOrLibudevRe = /^(?:Xlib|libudev)/;
|
16
17
|
const isHighSierraWarningRe = /\*\*\* WARNING/;
|
17
18
|
const isRenderWorkerRe = /\.RenderWorker-/;
|
@@ -204,6 +205,19 @@ module.exports = {
|
|
204
205
|
child.on('close', resolveOn('close'));
|
205
206
|
child.on('exit', resolveOn('exit'));
|
206
207
|
child.on('error', reject);
|
208
|
+
if (isPlatform('win32')) {
|
209
|
+
const rl = readline.createInterface({
|
210
|
+
input: process.stdin,
|
211
|
+
output: process.stdout
|
212
|
+
});
|
213
|
+
|
214
|
+
// on windows, SIGINT does not propagate to the child process when ctrl+c is pressed
|
215
|
+
// this makes sure all nested processes are closed(ex: firefox inside the server)
|
216
|
+
rl.on('SIGINT', function () {
|
217
|
+
let kill = require('tree-kill');
|
218
|
+
kill(child.pid, 'SIGINT');
|
219
|
+
});
|
220
|
+
}
|
207
221
|
|
208
222
|
// if stdio options is set to 'pipe', then
|
209
223
|
// we should set up pipes:
|
package/lib/util.js
CHANGED
@@ -9,7 +9,7 @@ const la = require('lazy-ass');
|
|
9
9
|
const is = require('check-more-types');
|
10
10
|
const tty = require('tty');
|
11
11
|
const path = require('path');
|
12
|
-
const isCi = require('
|
12
|
+
const isCi = require('ci-info').isCI;
|
13
13
|
const execa = require('execa');
|
14
14
|
const getos = require('getos');
|
15
15
|
const chalk = require('chalk');
|
package/mount-utils/package.json
CHANGED
package/package.json
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
{
|
2
2
|
"name": "cypress",
|
3
|
-
"version": "13.15.
|
3
|
+
"version": "13.15.2",
|
4
4
|
"main": "index.js",
|
5
5
|
"scripts": {
|
6
6
|
"postinstall": "node index.js --exec install",
|
7
7
|
"size": "t=\"$(npm pack .)\"; wc -c \"${t}\"; tar tvf \"${t}\"; rm \"${t}\";"
|
8
8
|
},
|
9
9
|
"dependencies": {
|
10
|
-
"@cypress/request": "^3.0.
|
10
|
+
"@cypress/request": "^3.0.6",
|
11
11
|
"@cypress/xvfb": "^1.2.4",
|
12
12
|
"@types/sinonjs__fake-timers": "8.1.1",
|
13
13
|
"@types/sizzle": "^2.3.2",
|
@@ -18,6 +18,7 @@
|
|
18
18
|
"cachedir": "^2.3.0",
|
19
19
|
"chalk": "^4.1.0",
|
20
20
|
"check-more-types": "^2.24.0",
|
21
|
+
"ci-info": "^4.0.0",
|
21
22
|
"cli-cursor": "^3.1.0",
|
22
23
|
"cli-table3": "~0.6.1",
|
23
24
|
"commander": "^6.2.1",
|
@@ -32,7 +33,6 @@
|
|
32
33
|
"figures": "^3.2.0",
|
33
34
|
"fs-extra": "^9.1.0",
|
34
35
|
"getos": "^3.2.1",
|
35
|
-
"is-ci": "^3.0.1",
|
36
36
|
"is-installed-globally": "~0.4.0",
|
37
37
|
"lazy-ass": "^1.6.0",
|
38
38
|
"listr2": "^3.8.3",
|
@@ -47,6 +47,7 @@
|
|
47
47
|
"semver": "^7.5.3",
|
48
48
|
"supports-color": "^8.1.1",
|
49
49
|
"tmp": "~0.2.3",
|
50
|
+
"tree-kill": "1.2.2",
|
50
51
|
"untildify": "^4.0.0",
|
51
52
|
"yauzl": "^2.10.0"
|
52
53
|
},
|
@@ -140,8 +141,8 @@
|
|
140
141
|
},
|
141
142
|
"buildInfo": {
|
142
143
|
"commitBranch": "develop",
|
143
|
-
"commitSha": "
|
144
|
-
"commitDate": "2024-
|
144
|
+
"commitSha": "5caacc2f1a69a5faae85aadcc26353e5aebdb201",
|
145
|
+
"commitDate": "2024-11-05T20:33:30.000Z",
|
145
146
|
"stable": true
|
146
147
|
},
|
147
148
|
"description": "Cypress is a next generation front end testing tool built for the modern web",
|
package/react18/package.json
CHANGED
package/svelte/package.json
CHANGED