cypress 15.17.0 → 15.18.1

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/dist/bin/cypress CHANGED
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  'use strict';
3
3
 
4
- var cli = require('../cli-CqSCkgQ7.js');
4
+ var cli = require('../cli-MLF6G_xs.js');
5
5
  require('../xvfb-CqCqXRC-.js');
6
6
  require('os');
7
7
  require('bluebird');
@@ -32,7 +32,7 @@ require('commander');
32
32
  require('cli-table3');
33
33
  require('dayjs');
34
34
  require('dayjs/plugin/relativeTime');
35
- require('../spawn-Cnrq9zm4.js');
35
+ require('../spawn-DB1Wbiwy.js');
36
36
  require('child_process');
37
37
  require('listr2');
38
38
  require('readline');
@@ -13,7 +13,7 @@ var dayjs = require('dayjs');
13
13
  var relativeTime = require('dayjs/plugin/relativeTime');
14
14
  var chalk = require('chalk');
15
15
  var Bluebird = require('bluebird');
16
- var spawn = require('./spawn-Cnrq9zm4.js');
16
+ var spawn = require('./spawn-DB1Wbiwy.js');
17
17
  var os = require('os');
18
18
  var listr2 = require('listr2');
19
19
  var timers = require('timers/promises');
@@ -638,22 +638,6 @@ const alreadyInstalledMsg = () => {
638
638
  }
639
639
  };
640
640
  const displayCompletionMsg = () => {
641
- // check here to see if we are globally installed
642
- if (xvfb.util.isInstalledGlobally()) {
643
- // if we are display a warning
644
- xvfb.loggerModule.log();
645
- xvfb.loggerModule.warn(commonTags.stripIndent `
646
- ${logSymbols.warning} Warning: It looks like you\'ve installed Cypress globally.
647
-
648
- The recommended way to install Cypress is as a devDependency per project.
649
-
650
- You should probably run these commands:
651
-
652
- - ${chalk.cyan('npm uninstall -g cypress')}
653
- - ${chalk.cyan('npm install --save-dev cypress')}
654
- `);
655
- return;
656
- }
657
641
  xvfb.loggerModule.log();
658
642
  xvfb.loggerModule.log('You can now open Cypress by running one of the following, depending on your package manager:');
659
643
  xvfb.loggerModule.log();
@@ -1833,19 +1817,7 @@ const cliModule = {
1833
1817
  if (!args) {
1834
1818
  args = process.argv;
1835
1819
  }
1836
- const { CYPRESS_INTERNAL_ENV, CYPRESS_DOWNLOAD_USE_CA } = process.env;
1837
- if (process.env.CYPRESS_DOWNLOAD_USE_CA) {
1838
- let msg = `
1839
- ${logSymbols.warning} Warning: It looks like you're setting CYPRESS_DOWNLOAD_USE_CA=${CYPRESS_DOWNLOAD_USE_CA}
1840
-
1841
- The environment variable "CYPRESS_DOWNLOAD_USE_CA" is no longer required to be set.
1842
-
1843
- You can safely unset this environment variable.
1844
- `;
1845
- xvfb.loggerModule.log();
1846
- xvfb.loggerModule.warn(commonTags.stripIndent(msg));
1847
- xvfb.loggerModule.log();
1848
- }
1820
+ const { CYPRESS_INTERNAL_ENV } = process.env;
1849
1821
  if (!xvfb.util.isValidCypressInternalEnvValue(CYPRESS_INTERNAL_ENV)) {
1850
1822
  debug('invalid CYPRESS_INTERNAL_ENV value', CYPRESS_INTERNAL_ENV);
1851
1823
  return xvfb.exitWithError(xvfb.errors.invalidCypressEnv)(`CYPRESS_INTERNAL_ENV=${CYPRESS_INTERNAL_ENV}`);
package/dist/cli.js CHANGED
@@ -8,8 +8,8 @@ require('commander');
8
8
  require('common-tags');
9
9
  require('log-symbols');
10
10
  require('debug');
11
- var cli = require('./cli-CqSCkgQ7.js');
12
- require('./spawn-Cnrq9zm4.js');
11
+ var cli = require('./cli-MLF6G_xs.js');
12
+ require('./spawn-DB1Wbiwy.js');
13
13
  require('os');
14
14
  require('bluebird');
15
15
  require('@cypress/xvfb');
@@ -3,7 +3,7 @@
3
3
  var xvfb = require('./xvfb-CqCqXRC-.js');
4
4
  var tmp = require('tmp');
5
5
  var fs = require('fs-extra');
6
- var cli$1 = require('./cli-CqSCkgQ7.js');
6
+ var cli$1 = require('./cli-MLF6G_xs.js');
7
7
 
8
8
  /**
9
9
  * Opens Cypress GUI
package/dist/cypress.js CHANGED
@@ -3,8 +3,8 @@
3
3
  require('./xvfb-CqCqXRC-.js');
4
4
  require('tmp');
5
5
  require('fs-extra');
6
- require('./cli-CqSCkgQ7.js');
7
- var cypress = require('./cypress-BZS7OvER.js');
6
+ require('./cli-MLF6G_xs.js');
7
+ var cypress = require('./cypress-9PxR1qmG.js');
8
8
  require('os');
9
9
  require('bluebird');
10
10
  require('@cypress/xvfb');
@@ -33,7 +33,7 @@ require('commander');
33
33
  require('cli-table3');
34
34
  require('dayjs');
35
35
  require('dayjs/plugin/relativeTime');
36
- require('./spawn-Cnrq9zm4.js');
36
+ require('./spawn-DB1Wbiwy.js');
37
37
  require('child_process');
38
38
  require('listr2');
39
39
  require('readline');
@@ -6,7 +6,7 @@ require('os');
6
6
  require('child_process');
7
7
  require('path');
8
8
  require('debug');
9
- var spawn = require('../spawn-Cnrq9zm4.js');
9
+ var spawn = require('../spawn-DB1Wbiwy.js');
10
10
  require('readline');
11
11
  require('process');
12
12
  require('stream');
package/dist/index.js CHANGED
@@ -5,9 +5,9 @@ Object.defineProperty(exports, '__esModule', { value: true });
5
5
  var xvfb = require('./xvfb-CqCqXRC-.js');
6
6
  var minimist = require('minimist');
7
7
  var Debug = require('debug');
8
- var cli$1 = require('./cli-CqSCkgQ7.js');
9
- var spawn = require('./spawn-Cnrq9zm4.js');
10
- var cypress = require('./cypress-BZS7OvER.js');
8
+ var cli$1 = require('./cli-MLF6G_xs.js');
9
+ var spawn = require('./spawn-DB1Wbiwy.js');
10
+ var cypress = require('./cypress-9PxR1qmG.js');
11
11
  require('os');
12
12
  require('bluebird');
13
13
  require('@cypress/xvfb');
@@ -9,7 +9,6 @@ var Debug = require('debug');
9
9
  var chalk = require('chalk');
10
10
  var listr2 = require('listr2');
11
11
  var commonTags = require('common-tags');
12
- var Bluebird = require('bluebird');
13
12
  var logSymbols = require('log-symbols');
14
13
  var readline = require('readline');
15
14
  var process$1 = require('process');
@@ -163,10 +162,7 @@ function verifyBinary(installedVersion, binaryDir, options) {
163
162
  task: (ctx, task) => xvfb.__awaiter(this, void 0, void 0, function* () {
164
163
  debug$1('clearing out the verified version');
165
164
  yield xvfb.stateModule.clearBinaryStateAsync(binaryDir);
166
- yield Promise.all([
167
- runSmokeTest(binaryDir, options),
168
- Bluebird.delay(1500), // good user experience
169
- ]);
165
+ yield runSmokeTest(binaryDir, options);
170
166
  debug$1('write verified: true');
171
167
  yield xvfb.stateModule.writeBinaryVerifiedAsync(true, binaryDir);
172
168
  task.title = xvfb.util.titleize(chalk.green('Verified Cypress!'), chalk.gray(binaryDir));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cypress",
3
- "version": "15.17.0",
3
+ "version": "15.18.1",
4
4
  "main": "dist/index.js",
5
5
  "scripts": {
6
6
  "postinstall": "node dist/index.js --exec install",
@@ -138,8 +138,8 @@
138
138
  },
139
139
  "buildInfo": {
140
140
  "commitBranch": "develop",
141
- "commitSha": "b22780a9bb118b86730e22243aba16e25e7a5bed",
142
- "commitDate": "2026-06-09T13:13:52.000Z",
141
+ "commitSha": "6ff266f1070ec57678cb12917d614dd236fa9823",
142
+ "commitDate": "2026-07-07T02:41:48.000Z",
143
143
  "stable": true
144
144
  },
145
145
  "description": "Cypress is a next generation front end testing tool built for the modern web",
@@ -8,10 +8,13 @@
8
8
  "build": "rollup -c rollup.config.mjs",
9
9
  "postbuild": "node ../../scripts/sync-exported-npm-with-cli.js",
10
10
  "check-ts": "tsc --noEmit",
11
- "lint": "eslint --ext .js,.jsx,.ts,.tsx,.json, ."
11
+ "lint": "eslint"
12
12
  },
13
13
  "devDependencies": {
14
+ "@packages/eslint-config": "0.0.0-development",
14
15
  "@cypress/mount-utils": "0.0.0-development",
16
+ "eslint": "^9.31.0",
17
+ "jiti": "^2.4.2",
15
18
  "rollup": "3.29.5",
16
19
  "svelte": "^5.4.0",
17
20
  "typescript": "~5.4.5"
@@ -53,5 +56,8 @@
53
56
  "implicitDependencies": [
54
57
  "!cypress"
55
58
  ]
59
+ },
60
+ "lint-staged": {
61
+ "**/*.{js,jsx,ts,tsx}": "eslint --fix"
56
62
  }
57
63
  }
@@ -8,10 +8,13 @@
8
8
  "build": "rollup -c rollup.config.mjs",
9
9
  "postbuild": "node ../../scripts/sync-exported-npm-with-cli.js",
10
10
  "check-ts": "tsc --noEmit",
11
- "lint": "eslint --ext .js,.jsx,.ts,.tsx,.json, ."
11
+ "lint": "eslint"
12
12
  },
13
13
  "devDependencies": {
14
+ "@packages/eslint-config": "0.0.0-development",
14
15
  "@cypress/mount-utils": "0.0.0-development",
16
+ "eslint": "^9.31.0",
17
+ "jiti": "^2.4.2",
15
18
  "rollup": "3.29.5",
16
19
  "svelte": "^5.4.0",
17
20
  "typescript": "~5.4.5"
@@ -53,5 +56,8 @@
53
56
  "implicitDependencies": [
54
57
  "!cypress"
55
58
  ]
59
+ },
60
+ "lint-staged": {
61
+ "**/*.{js,jsx,ts,tsx}": "eslint --fix"
56
62
  }
57
63
  }
@@ -7,4 +7,26 @@ declare namespace Chai {
7
7
  text(text: string): Assertion
8
8
  value(text: string): Assertion
9
9
  }
10
+
11
+ interface Assertion {
12
+ /**
13
+ * Assert that at least one element of the selection is focused.
14
+ *
15
+ * @example
16
+ * expect($('#result')).to.have.focus
17
+ * expect($('#result')).to.be.focused
18
+ * @see http://chaijs.com/plugins/chai-jquery/#focus
19
+ */
20
+ focus: Assertion
21
+
22
+ /**
23
+ * Assert that at least one element of the selection is focused.
24
+ *
25
+ * @example
26
+ * expect($('#result')).to.be.focused
27
+ * expect($('#result')).to.have.focus
28
+ * @see http://chaijs.com/plugins/chai-jquery/#focus
29
+ */
30
+ focused: Assertion
31
+ }
10
32
  }
@@ -3074,6 +3074,15 @@ declare namespace Cypress {
3074
3074
  * @see https://on.cypress.io/configuration#modifyObstructiveCode
3075
3075
  */
3076
3076
  modifyObstructiveCode: boolean
3077
+ /**
3078
+ * Whether Cypress will strip the `integrity` attribute from `<script>` and `<link>` elements
3079
+ * on first-party resources so they are not blocked by Subresource Integrity (SRI) enforcement
3080
+ * after the proxy rewrites them (under `modifyObstructiveCode`). Covers `integrity` set via
3081
+ * static HTML, a JavaScript string literal, or runtime DOM assignment. Third-party resources
3082
+ * are only rewritten — and have their SRI stripped — under `experimentalModifyObstructiveThirdPartyCode`.
3083
+ * @default false
3084
+ */
3085
+ removeSRIAttributes: boolean
3077
3086
  /**
3078
3087
  * Time, in milliseconds, to wait for an XHR request to go out in a [cy.wait()](https://on.cypress.io/wait) command
3079
3088
  * @default 5000
@@ -3233,7 +3242,8 @@ declare namespace Cypress {
3233
3242
  experimentalInteractiveRunEvents: boolean
3234
3243
  /**
3235
3244
  * Whether Cypress will search for and replace obstructive code in third party .js or .html files.
3236
- * NOTE: Setting this flag to true removes Subresource Integrity (SRI).
3245
+ * NOTE: Setting this flag to true removes Subresource Integrity (SRI) from third-party resources.
3246
+ * To strip SRI from first-party resources as well, use `removeSRIAttributes`.
3237
3247
  * Please see https://developer.mozilla.org/en-US/docs/Web/Security/Subresource_Integrity.
3238
3248
  * This option has no impact on experimentalSourceRewriting and is only used with the
3239
3249
  * non-experimental source rewriter.
@@ -4043,7 +4053,7 @@ declare namespace Cypress {
4043
4053
  method: 'GET' | 'POST'
4044
4054
 
4045
4055
  /**
4046
- * An optional body to send along with a `POST` request. If it is a string, it will be passed along unmodified. If it is an object, it will be URL encoded to a string and sent with a `Content-Type: application/x-www-urlencoded` header.
4056
+ * An optional body to send along with a `POST` request. If it is a string, it will be passed along unmodified. If it is an object, it will be URL encoded to a string and sent with a `Content-Type: application/x-www-form-urlencoded` header.
4047
4057
  *
4048
4058
  * @example
4049
4059
  * cy.visit({
package/vue/package.json CHANGED
@@ -9,13 +9,16 @@
9
9
  "check-ts": "yarn tsd && vue-tsc --noEmit",
10
10
  "cy:open": "node ../../scripts/cypress.js open --component --project ${PWD}",
11
11
  "cy:run": "node ../../scripts/cypress.js run --component --project ${PWD}",
12
- "lint": "eslint --ext .js,.jsx,.ts,.tsx,.json,.vue .",
12
+ "lint": "eslint",
13
13
  "test": "yarn cy:run",
14
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": {
18
+ "@packages/eslint-config": "0.0.0-development",
18
19
  "@cypress/mount-utils": "0.0.0-development",
20
+ "eslint": "^9.31.0",
21
+ "jiti": "^2.4.2",
19
22
  "@vitejs/plugin-vue": "6.0.3",
20
23
  "@vue/compiler-sfc": "3.2.47",
21
24
  "@vue/test-utils": "2.4.6",
@@ -24,6 +27,7 @@
24
27
  "rollup": "3.29.5",
25
28
  "typescript": "~5.4.5",
26
29
  "vite": "6.3.5",
30
+ "vue-eslint-parser": "^10.0.0",
27
31
  "vue": "3.2.47",
28
32
  "vue-i18n": "9.14.5",
29
33
  "vue-router": "^4.0.0",
@@ -86,5 +90,8 @@
86
90
  ]
87
91
  }
88
92
  }
93
+ },
94
+ "lint-staged": {
95
+ "**/*.{js,jsx,ts,tsx,vue}": "eslint --fix"
89
96
  }
90
97
  }
@@ -9,13 +9,16 @@
9
9
  "check-ts": "yarn tsd && vue-tsc --noEmit",
10
10
  "cy:open": "node ../../scripts/cypress.js open --component --project ${PWD}",
11
11
  "cy:run": "node ../../scripts/cypress.js run --component --project ${PWD}",
12
- "lint": "eslint --ext .js,.jsx,.ts,.tsx,.json,.vue .",
12
+ "lint": "eslint",
13
13
  "test": "yarn cy:run",
14
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": {
18
+ "@packages/eslint-config": "0.0.0-development",
18
19
  "@cypress/mount-utils": "0.0.0-development",
20
+ "eslint": "^9.31.0",
21
+ "jiti": "^2.4.2",
19
22
  "@vitejs/plugin-vue": "6.0.3",
20
23
  "@vue/compiler-sfc": "3.2.47",
21
24
  "@vue/test-utils": "2.4.6",
@@ -24,6 +27,7 @@
24
27
  "rollup": "3.29.5",
25
28
  "typescript": "~5.4.5",
26
29
  "vite": "6.3.5",
30
+ "vue-eslint-parser": "^10.0.0",
27
31
  "vue": "3.2.47",
28
32
  "vue-i18n": "9.14.5",
29
33
  "vue-router": "^4.0.0",
@@ -86,5 +90,8 @@
86
90
  ]
87
91
  }
88
92
  }
93
+ },
94
+ "lint-staged": {
95
+ "**/*.{js,jsx,ts,tsx,vue}": "eslint --fix"
89
96
  }
90
97
  }