cypress 13.14.2 → 13.15.1

Sign up to get free protection for your applications and to get access to all the features.
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:
@@ -17,7 +17,7 @@
17
17
  "rollup": "3.7.3",
18
18
  "rollup-plugin-dts": "5.0.0",
19
19
  "rollup-plugin-typescript2": "^0.29.0",
20
- "typescript": "^5.4.5"
20
+ "typescript": "~5.4.5"
21
21
  },
22
22
  "files": [
23
23
  "dist"
@@ -17,7 +17,7 @@
17
17
  "rollup": "3.7.3",
18
18
  "rollup-plugin-dts": "5.0.0",
19
19
  "rollup-plugin-typescript2": "^0.29.0",
20
- "typescript": "^5.4.5"
20
+ "typescript": "~5.4.5"
21
21
  },
22
22
  "files": [
23
23
  "dist"
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "cypress",
3
- "version": "13.14.2",
3
+ "version": "13.15.1",
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.1",
10
+ "@cypress/request": "^3.0.4",
11
11
  "@cypress/xvfb": "^1.2.4",
12
12
  "@types/sinonjs__fake-timers": "8.1.1",
13
13
  "@types/sizzle": "^2.3.2",
@@ -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": "12d8e0bd6ee1e49cddb3c60283a867fbb2216044",
144
- "commitDate": "2024-09-04T15:12:09.000Z",
144
+ "commitSha": "199b1cd580d22fc412641f164e3ee6492f88e338",
145
+ "commitDate": "2024-10-24T14:36:10.000Z",
145
146
  "stable": true
146
147
  },
147
148
  "description": "Cypress is a next generation front end testing tool built for the modern web",
@@ -22,7 +22,7 @@
22
22
  "react-dom": "^16",
23
23
  "rollup": "3.7.3",
24
24
  "rollup-plugin-typescript2": "^0.29.0",
25
- "typescript": "^5.4.5"
25
+ "typescript": "~5.4.5"
26
26
  },
27
27
  "peerDependencies": {
28
28
  "@types/react": "^18",
@@ -22,7 +22,7 @@
22
22
  "react-dom": "^16",
23
23
  "rollup": "3.7.3",
24
24
  "rollup-plugin-typescript2": "^0.29.0",
25
- "typescript": "^5.4.5"
25
+ "typescript": "~5.4.5"
26
26
  },
27
27
  "peerDependencies": {
28
28
  "@types/react": "^18",
@@ -13,7 +13,7 @@
13
13
  "devDependencies": {
14
14
  "@cypress/mount-utils": "0.0.0-development",
15
15
  "svelte": "^3.49.0",
16
- "typescript": "^5.4.5"
16
+ "typescript": "~5.4.5"
17
17
  },
18
18
  "peerDependencies": {
19
19
  "cypress": ">=10.6.0",
@@ -13,7 +13,7 @@
13
13
  "devDependencies": {
14
14
  "@cypress/mount-utils": "0.0.0-development",
15
15
  "svelte": "^3.49.0",
16
- "typescript": "^5.4.5"
16
+ "typescript": "~5.4.5"
17
17
  },
18
18
  "peerDependencies": {
19
19
  "cypress": ">=10.6.0",
package/vue/package.json CHANGED
@@ -11,7 +11,7 @@
11
11
  "cy:run": "node ../../scripts/cypress.js run --component --project ${PWD}",
12
12
  "lint": "eslint --ext .js,.jsx,.ts,.tsx,.json,.vue .",
13
13
  "test": "yarn cy:run",
14
- "tsd": "yarn build && yarn tsc -p test-tsd/tsconfig.tsd.json",
14
+ "tsd": "yarn build && yarn tsc -p test-tsd/tsconfig.json",
15
15
  "watch": "yarn build --watch --watch.exclude ./dist/**/*"
16
16
  },
17
17
  "devDependencies": {
@@ -11,7 +11,7 @@
11
11
  "cy:run": "node ../../scripts/cypress.js run --component --project ${PWD}",
12
12
  "lint": "eslint --ext .js,.jsx,.ts,.tsx,.json,.vue .",
13
13
  "test": "yarn cy:run",
14
- "tsd": "yarn build && yarn tsc -p test-tsd/tsconfig.tsd.json",
14
+ "tsd": "yarn build && yarn tsc -p test-tsd/tsconfig.json",
15
15
  "watch": "yarn build --watch --watch.exclude ./dist/**/*"
16
16
  },
17
17
  "devDependencies": {