cypress 16.1.1 → 16.2.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.
Files changed (39) hide show
  1. package/angular/angular/dist/index.js +6 -7
  2. package/angular/angular/package.json +7 -22
  3. package/angular/dist/index.js +6 -7
  4. package/angular/package.json +7 -22
  5. package/dist/bin/cypress +2 -2
  6. package/dist/{cli-BUzHfIQ2.js → cli-DoJnc1F1.js} +6 -5
  7. package/dist/cli.js +2 -2
  8. package/dist/{cypress-D0g_F_Y2.js → cypress-BTgp4zGi.js} +1 -1
  9. package/dist/cypress.js +3 -3
  10. package/dist/exec/spawn.js +1 -1
  11. package/dist/index.js +3 -3
  12. package/dist/{spawn-BNsy7yWl.js → spawn-zPuxj7Kz.js} +34 -37
  13. package/dist/{tap-E19yanov.js → tap-D2mHgoNE.js} +2 -2
  14. package/mount-utils/dist/index.js +0 -1
  15. package/mount-utils/mount-utils/dist/index.js +0 -1
  16. package/mount-utils/mount-utils/package.json +14 -14
  17. package/mount-utils/package.json +14 -14
  18. package/package.json +4 -4
  19. package/react/dist/cypress-react.cjs.js +5 -6
  20. package/react/dist/cypress-react.esm-bundler.js +5 -6
  21. package/react/package.json +26 -46
  22. package/react/react/dist/cypress-react.cjs.js +5 -6
  23. package/react/react/dist/cypress-react.esm-bundler.js +5 -6
  24. package/react/react/package.json +26 -46
  25. package/svelte/dist/cypress-svelte.cjs.js +0 -1
  26. package/svelte/dist/cypress-svelte.esm-bundler.js +0 -1
  27. package/svelte/package.json +24 -22
  28. package/svelte/svelte/dist/cypress-svelte.cjs.js +0 -1
  29. package/svelte/svelte/dist/cypress-svelte.esm-bundler.js +0 -1
  30. package/svelte/svelte/package.json +24 -22
  31. package/types/aria-query/index.d.ts +343 -0
  32. package/types/cy-chai.d.ts +99 -2
  33. package/types/cypress.d.ts +301 -49
  34. package/vue/dist/cypress-vue.cjs.js +1 -2
  35. package/vue/dist/cypress-vue.esm-bundler.js +1 -2
  36. package/vue/package.json +35 -42
  37. package/vue/vue/dist/cypress-vue.cjs.js +1 -2
  38. package/vue/vue/dist/cypress-vue.esm-bundler.js +1 -2
  39. package/vue/vue/package.json +35 -42
@@ -88,7 +88,6 @@ function setupHooks(optionalCallback) {
88
88
  Cypress.Commands.overwrite('origin', () => {
89
89
  throw new Error('cy.origin from a component spec is not allowed');
90
90
  });
91
- // @ts-ignore
92
91
  Cypress.on('test:before:after:run:async', () => {
93
92
  optionalCallback?.();
94
93
  });
@@ -284,10 +283,10 @@ function registerSignalEventsIfNeeded(propKey, propValue, componentValue, inject
284
283
  function detectAndRegisterOutputSpyToSignal(config, component, key, injector) {
285
284
  if (config.componentProperties) {
286
285
  const expectedChangeKey = `${key}Change`;
287
- let changeKeyIfExists = !!Object.keys(config.componentProperties).find((componentKey) => componentKey === expectedChangeKey);
286
+ const changeKeyIfExists = !!Object.keys(config.componentProperties).find((componentKey) => componentKey === expectedChangeKey);
288
287
  if (changeKeyIfExists) {
289
288
  component[expectedChangeKey] =
290
- // @ts-expect-error
289
+ // @ts-expect-error key is a string, not keyof T, so it can't index componentProperties
291
290
  config.componentProperties[expectedChangeKey];
292
291
  }
293
292
  if (changeKeyIfExists) {
@@ -324,7 +323,7 @@ function setupComponent(config, fixture) {
324
323
  var _a;
325
324
  // only assign props if they are passed into the component
326
325
  if ((_a = config === null || config === void 0 ? void 0 : config.componentProperties) === null || _a === void 0 ? void 0 : _a.hasOwnProperty(key)) {
327
- // @ts-expect-error
326
+ // @ts-expect-error key is a string, not keyof T, so it can't index componentProperties
328
327
  const passedInValue = config === null || config === void 0 ? void 0 : config.componentProperties[key];
329
328
  registerSignalEventsIfNeeded(key, passedInValue, component[key], injector, fixture);
330
329
  detectAndRegisterOutputSpyToSignal(config, component, key, injector);
@@ -336,11 +335,11 @@ function setupComponent(config, fixture) {
336
335
  const property = component[key];
337
336
  // With the introduction of https://github.com/cypress-io/cypress/pull/31993, we want to make sure that component inputs are reference safe inside cy.mount().
338
337
  // However, the exception to this is if the user passes in a Cypress output spy as a property in order to maintain backwards compatibility.
339
- // @ts-expect-error
338
+ // @ts-expect-error key is a string, not keyof T, so it can't index componentProperties
340
339
  if (property instanceof EventEmitter || (((_a = config === null || config === void 0 ? void 0 : config.componentProperties) === null || _a === void 0 ? void 0 : _a.hasOwnProperty(key)) && (config === null || config === void 0 ? void 0 : config.componentProperties[key]) instanceof EventEmitter)) {
341
340
  // only assign props if they are passed into the component
342
341
  if ((_b = config === null || config === void 0 ? void 0 : config.componentProperties) === null || _b === void 0 ? void 0 : _b.hasOwnProperty(key)) {
343
- // @ts-expect-error
342
+ // @ts-expect-error key is a string, not keyof T, so it can't index componentProperties
344
343
  const passedInValue = config === null || config === void 0 ? void 0 : config.componentProperties[key];
345
344
  component[key] = passedInValue;
346
345
  }
@@ -418,7 +417,7 @@ function mount(component, config = {}) {
418
417
  const componentFixture = initTestBed(component, config);
419
418
  let mountResponsePromiseResolver;
420
419
  let mountResponsePromiseRejector;
421
- let mountResponsePromise = new Promise((resolve, reject) => {
420
+ const mountResponsePromise = new Promise((resolve, reject) => {
422
421
  mountResponsePromiseResolver = resolve;
423
422
  mountResponsePromiseRejector = reject;
424
423
  });
@@ -9,7 +9,7 @@
9
9
  "postbuild": "node ../../scripts/sync-exported-npm-with-cli.js",
10
10
  "check-ts": "tsc --noEmit",
11
11
  "dev": "rollup -c rollup.config.mjs -w",
12
- "lint": "eslint --ext .js,.ts,.json, ."
12
+ "lint": "eslint"
13
13
  },
14
14
  "dependencies": {},
15
15
  "devDependencies": {
@@ -17,6 +17,9 @@
17
17
  "@angular/core": "^21.0.0",
18
18
  "@angular/platform-browser": "^21.0.0",
19
19
  "@cypress/mount-utils": "0.0.0-development",
20
+ "@packages/eslint-config": "0.0.0-development",
21
+ "eslint": "^9.31.0",
22
+ "jiti": "^2.4.2",
20
23
  "rollup": "^4.60.2",
21
24
  "typescript": "~5.9.2"
22
25
  },
@@ -33,7 +36,7 @@
33
36
  "license": "MIT",
34
37
  "repository": {
35
38
  "type": "git",
36
- "url": "https://github.com/cypress-io/cypress.git"
39
+ "url": "git+https://github.com/cypress-io/cypress.git"
37
40
  },
38
41
  "homepage": "https://github.com/cypress-io/cypress/blob/develop/npm/angular/#readme",
39
42
  "bugs": "https://github.com/cypress-io/cypress/issues/new?assignees=&labels=npm%3A%20%40cypress%2Fangular&template=1-bug-report.md&title=",
@@ -45,20 +48,6 @@
45
48
  "testing",
46
49
  "zoneless"
47
50
  ],
48
- "contributors": [
49
- {
50
- "name": "Bill Glesias",
51
- "social": "@atofstryker"
52
- },
53
- {
54
- "name": "Jordan Powell",
55
- "social": "@jordanpowell88"
56
- },
57
- {
58
- "name": "Zach Williams",
59
- "social": "@ZachJW34"
60
- }
61
- ],
62
51
  "module": "dist/index.js",
63
52
  "publishConfig": {
64
53
  "access": "public"
@@ -72,11 +61,7 @@
72
61
  }
73
62
  }
74
63
  },
75
- "standard": {
76
- "globals": [
77
- "Cypress",
78
- "cy",
79
- "expect"
80
- ]
64
+ "lint-staged": {
65
+ "**/*.{js,jsx,ts,tsx,json}": "eslint --fix"
81
66
  }
82
67
  }
@@ -88,7 +88,6 @@ function setupHooks(optionalCallback) {
88
88
  Cypress.Commands.overwrite('origin', () => {
89
89
  throw new Error('cy.origin from a component spec is not allowed');
90
90
  });
91
- // @ts-ignore
92
91
  Cypress.on('test:before:after:run:async', () => {
93
92
  optionalCallback?.();
94
93
  });
@@ -284,10 +283,10 @@ function registerSignalEventsIfNeeded(propKey, propValue, componentValue, inject
284
283
  function detectAndRegisterOutputSpyToSignal(config, component, key, injector) {
285
284
  if (config.componentProperties) {
286
285
  const expectedChangeKey = `${key}Change`;
287
- let changeKeyIfExists = !!Object.keys(config.componentProperties).find((componentKey) => componentKey === expectedChangeKey);
286
+ const changeKeyIfExists = !!Object.keys(config.componentProperties).find((componentKey) => componentKey === expectedChangeKey);
288
287
  if (changeKeyIfExists) {
289
288
  component[expectedChangeKey] =
290
- // @ts-expect-error
289
+ // @ts-expect-error key is a string, not keyof T, so it can't index componentProperties
291
290
  config.componentProperties[expectedChangeKey];
292
291
  }
293
292
  if (changeKeyIfExists) {
@@ -324,7 +323,7 @@ function setupComponent(config, fixture) {
324
323
  var _a;
325
324
  // only assign props if they are passed into the component
326
325
  if ((_a = config === null || config === void 0 ? void 0 : config.componentProperties) === null || _a === void 0 ? void 0 : _a.hasOwnProperty(key)) {
327
- // @ts-expect-error
326
+ // @ts-expect-error key is a string, not keyof T, so it can't index componentProperties
328
327
  const passedInValue = config === null || config === void 0 ? void 0 : config.componentProperties[key];
329
328
  registerSignalEventsIfNeeded(key, passedInValue, component[key], injector, fixture);
330
329
  detectAndRegisterOutputSpyToSignal(config, component, key, injector);
@@ -336,11 +335,11 @@ function setupComponent(config, fixture) {
336
335
  const property = component[key];
337
336
  // With the introduction of https://github.com/cypress-io/cypress/pull/31993, we want to make sure that component inputs are reference safe inside cy.mount().
338
337
  // However, the exception to this is if the user passes in a Cypress output spy as a property in order to maintain backwards compatibility.
339
- // @ts-expect-error
338
+ // @ts-expect-error key is a string, not keyof T, so it can't index componentProperties
340
339
  if (property instanceof EventEmitter || (((_a = config === null || config === void 0 ? void 0 : config.componentProperties) === null || _a === void 0 ? void 0 : _a.hasOwnProperty(key)) && (config === null || config === void 0 ? void 0 : config.componentProperties[key]) instanceof EventEmitter)) {
341
340
  // only assign props if they are passed into the component
342
341
  if ((_b = config === null || config === void 0 ? void 0 : config.componentProperties) === null || _b === void 0 ? void 0 : _b.hasOwnProperty(key)) {
343
- // @ts-expect-error
342
+ // @ts-expect-error key is a string, not keyof T, so it can't index componentProperties
344
343
  const passedInValue = config === null || config === void 0 ? void 0 : config.componentProperties[key];
345
344
  component[key] = passedInValue;
346
345
  }
@@ -418,7 +417,7 @@ function mount(component, config = {}) {
418
417
  const componentFixture = initTestBed(component, config);
419
418
  let mountResponsePromiseResolver;
420
419
  let mountResponsePromiseRejector;
421
- let mountResponsePromise = new Promise((resolve, reject) => {
420
+ const mountResponsePromise = new Promise((resolve, reject) => {
422
421
  mountResponsePromiseResolver = resolve;
423
422
  mountResponsePromiseRejector = reject;
424
423
  });
@@ -9,7 +9,7 @@
9
9
  "postbuild": "node ../../scripts/sync-exported-npm-with-cli.js",
10
10
  "check-ts": "tsc --noEmit",
11
11
  "dev": "rollup -c rollup.config.mjs -w",
12
- "lint": "eslint --ext .js,.ts,.json, ."
12
+ "lint": "eslint"
13
13
  },
14
14
  "dependencies": {},
15
15
  "devDependencies": {
@@ -17,6 +17,9 @@
17
17
  "@angular/core": "^21.0.0",
18
18
  "@angular/platform-browser": "^21.0.0",
19
19
  "@cypress/mount-utils": "0.0.0-development",
20
+ "@packages/eslint-config": "0.0.0-development",
21
+ "eslint": "^9.31.0",
22
+ "jiti": "^2.4.2",
20
23
  "rollup": "^4.60.2",
21
24
  "typescript": "~5.9.2"
22
25
  },
@@ -33,7 +36,7 @@
33
36
  "license": "MIT",
34
37
  "repository": {
35
38
  "type": "git",
36
- "url": "https://github.com/cypress-io/cypress.git"
39
+ "url": "git+https://github.com/cypress-io/cypress.git"
37
40
  },
38
41
  "homepage": "https://github.com/cypress-io/cypress/blob/develop/npm/angular/#readme",
39
42
  "bugs": "https://github.com/cypress-io/cypress/issues/new?assignees=&labels=npm%3A%20%40cypress%2Fangular&template=1-bug-report.md&title=",
@@ -45,20 +48,6 @@
45
48
  "testing",
46
49
  "zoneless"
47
50
  ],
48
- "contributors": [
49
- {
50
- "name": "Bill Glesias",
51
- "social": "@atofstryker"
52
- },
53
- {
54
- "name": "Jordan Powell",
55
- "social": "@jordanpowell88"
56
- },
57
- {
58
- "name": "Zach Williams",
59
- "social": "@ZachJW34"
60
- }
61
- ],
62
51
  "module": "dist/index.js",
63
52
  "publishConfig": {
64
53
  "access": "public"
@@ -72,11 +61,7 @@
72
61
  }
73
62
  }
74
63
  },
75
- "standard": {
76
- "globals": [
77
- "Cypress",
78
- "cy",
79
- "expect"
80
- ]
64
+ "lint-staged": {
65
+ "**/*.{js,jsx,ts,tsx,json}": "eslint --fix"
81
66
  }
82
67
  }
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-BUzHfIQ2.js');
4
+ var cli = require('../cli-DoJnc1F1.js');
5
5
  require('../xvfb-CbW2_YXR.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-BNsy7yWl.js');
35
+ require('../spawn-zPuxj7Kz.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-BNsy7yWl.js');
16
+ var spawn = require('./spawn-zPuxj7Kz.js');
17
17
  var os = require('os');
18
18
  var listr2 = require('listr2');
19
19
  var timers = require('timers/promises');
@@ -1889,7 +1889,8 @@ const downloadFromUrl = ({ url, downloadDestination, progress, ca, version, redi
1889
1889
  * @param [string] downloadDestination Local filename to save as
1890
1890
  */
1891
1891
  const start$2 = (opts) => xvfb.__awaiter(void 0, void 0, void 0, function* () {
1892
- let { version, downloadDestination, progress, redirectTTL } = opts;
1892
+ const { version, downloadDestination, redirectTTL } = opts;
1893
+ let { progress } = opts;
1893
1894
  if (!downloadDestination) {
1894
1895
  assert.ok(_.isString(downloadDestination) && !_.isEmpty(downloadDestination), 'missing download dir');
1895
1896
  }
@@ -2507,7 +2508,7 @@ var installModule = {
2507
2508
  const debug$1 = Debug('cypress:cli');
2508
2509
  const getBinaryDirectory = () => xvfb.__awaiter(void 0, void 0, void 0, function* () {
2509
2510
  if (xvfb.util.getEnv('CYPRESS_RUN_BINARY')) {
2510
- let envBinaryPath = path.resolve(xvfb.util.getEnv('CYPRESS_RUN_BINARY'));
2511
+ const envBinaryPath = path.resolve(xvfb.util.getEnv('CYPRESS_RUN_BINARY'));
2511
2512
  try {
2512
2513
  const envBinaryDir = yield xvfb.stateModule.parseRealPlatformBinaryFolderAsync(envBinaryPath);
2513
2514
  if (!envBinaryDir) {
@@ -2957,7 +2958,7 @@ const cliModule = {
2957
2958
  }
2958
2959
  if (xvfb.util.isNonProductionCypressInternalEnvValue(CYPRESS_INTERNAL_ENV)) {
2959
2960
  debug('non-production CYPRESS_INTERNAL_ENV value', CYPRESS_INTERNAL_ENV);
2960
- let msg = `
2961
+ const msg = `
2961
2962
  ${logSymbols.warning} Warning: It looks like you're passing CYPRESS_INTERNAL_ENV=${CYPRESS_INTERNAL_ENV}
2962
2963
 
2963
2964
  The environment variable "CYPRESS_INTERNAL_ENV" is reserved and should only be used internally.
@@ -3088,7 +3089,7 @@ const cliModule = {
3088
3089
  .action(function (opts, args) {
3089
3090
  return xvfb.__awaiter(this, void 0, void 0, function* () {
3090
3091
  try {
3091
- const { default: tapModule } = yield Promise.resolve().then(function () { return require('./tap-E19yanov.js'); });
3092
+ const { default: tapModule } = yield Promise.resolve().then(function () { return require('./tap-D2mHgoNE.js'); });
3092
3093
  const code = yield tapModule.start(args || [], _.pick(opts, ['session', 'json', 'timeout']));
3093
3094
  process.exit(code);
3094
3095
  }
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-BUzHfIQ2.js');
12
- require('./spawn-BNsy7yWl.js');
11
+ var cli = require('./cli-DoJnc1F1.js');
12
+ require('./spawn-zPuxj7Kz.js');
13
13
  require('os');
14
14
  require('bluebird');
15
15
  require('@cypress/xvfb');
@@ -3,7 +3,7 @@
3
3
  var xvfb = require('./xvfb-CbW2_YXR.js');
4
4
  var tmp = require('tmp');
5
5
  var fs = require('fs-extra');
6
- var cli$1 = require('./cli-BUzHfIQ2.js');
6
+ var cli$1 = require('./cli-DoJnc1F1.js');
7
7
 
8
8
  /**
9
9
  * Opens Cypress GUI
package/dist/cypress.js CHANGED
@@ -3,8 +3,8 @@
3
3
  require('./xvfb-CbW2_YXR.js');
4
4
  require('tmp');
5
5
  require('fs-extra');
6
- require('./cli-BUzHfIQ2.js');
7
- var cypress = require('./cypress-D0g_F_Y2.js');
6
+ require('./cli-DoJnc1F1.js');
7
+ var cypress = require('./cypress-BTgp4zGi.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-BNsy7yWl.js');
36
+ require('./spawn-zPuxj7Kz.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-BNsy7yWl.js');
9
+ var spawn = require('../spawn-zPuxj7Kz.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-CbW2_YXR.js');
6
6
  var minimist = require('minimist');
7
7
  var Debug = require('debug');
8
- var cli$1 = require('./cli-BUzHfIQ2.js');
9
- var spawn = require('./spawn-BNsy7yWl.js');
10
- var cypress = require('./cypress-D0g_F_Y2.js');
8
+ var cli$1 = require('./cli-DoJnc1F1.js');
9
+ var spawn = require('./spawn-zPuxj7Kz.js');
10
+ var cypress = require('./cypress-BTgp4zGi.js');
11
11
  require('os');
12
12
  require('bluebird');
13
13
  require('@cypress/xvfb');
@@ -95,7 +95,7 @@ const runSmokeTest = (binaryDir, options) => {
95
95
  }
96
96
  catch (err) {
97
97
  debug$1('Smoke test failed:', err);
98
- let errMessage = err.stderr || err.message;
98
+ const errMessage = err.stderr || err.message;
99
99
  debug$1('error message:', errMessage);
100
100
  if (err.timedOut) {
101
101
  debug$1('error timedOut is true');
@@ -546,50 +546,47 @@ function requireFilterTaggedContent () {
546
546
  /**
547
547
  * Processes a single line and routes content based on tag positions.
548
548
  *
549
- * This method handles the complex logic of detecting start and end tags within a line,
550
- * maintaining state across lines, and routing content to the appropriate streams.
551
- * It supports cases where both tags appear on the same line, only one tag appears,
552
- * or no tags appear but the line is part of ongoing tagged content.
549
+ * Tags are consumed left to right, so a line may contain any number of tagged
550
+ * regions in any order, e.g. `<end><start>text\n` when consecutive tagged writes
551
+ * are read as a single chunk. Tagged state carries across lines.
553
552
  *
554
553
  * @param line The line to process
555
554
  */
556
555
  async processLine(line) {
557
- const startPos = line.indexOf(this.startTag);
558
- const endPos = line.lastIndexOf(this.endTag);
559
- if (startPos >= 0 && endPos >= 0) {
560
- // Both tags on same line
561
- if (startPos > 0) {
562
- await this.pass(line.slice(0, startPos));
556
+ let rest = line;
557
+ do {
558
+ const endPos = rest.indexOf(this.endTag);
559
+ if (this.inTaggedContent) {
560
+ if (endPos < 0) {
561
+ await this.writeToWasteStream(rest);
562
+ return;
563
+ }
564
+ if (endPos > 0) {
565
+ await this.writeToWasteStream(rest.slice(0, endPos));
566
+ }
567
+ this.inTaggedContent = false;
568
+ rest = rest.slice(endPos + this.endTag.length);
569
+ continue;
563
570
  }
564
- await this.writeToWasteStream(line.slice(startPos + this.startTag.length, endPos));
565
- if (endPos + this.endTag.length < line.length) {
566
- await this.pass(line.slice(endPos + this.endTag.length));
571
+ const startPos = rest.indexOf(this.startTag);
572
+ // An end tag without a preceding start tag closes content whose start was not seen
573
+ if (endPos >= 0 && (startPos < 0 || endPos < startPos)) {
574
+ if (endPos > 0) {
575
+ await this.writeToWasteStream(rest.slice(0, endPos));
576
+ }
577
+ rest = rest.slice(endPos + this.endTag.length);
578
+ continue;
579
+ }
580
+ if (startPos < 0) {
581
+ await this.pass(rest);
582
+ return;
567
583
  }
568
- }
569
- else if (startPos >= 0) {
570
- // Start tag found
571
584
  if (startPos > 0) {
572
- await this.pass(line.slice(0, startPos));
585
+ await this.pass(rest.slice(0, startPos));
573
586
  }
574
- await this.writeToWasteStream(line.slice(startPos + this.startTag.length));
575
587
  this.inTaggedContent = true;
576
- }
577
- else if (endPos >= 0) {
578
- // End tag found
579
- await this.writeToWasteStream(line.slice(0, endPos));
580
- if (endPos + this.endTag.length < line.length) {
581
- await this.pass(line.slice(endPos + this.endTag.length));
582
- }
583
- this.inTaggedContent = false;
584
- }
585
- else if (this.inTaggedContent) {
586
- // Currently in tagged content
587
- await this.writeToWasteStream(line);
588
- }
589
- else {
590
- // Not in tagged content
591
- await this.pass(line);
592
- }
588
+ rest = rest.slice(startPos + this.startTag.length);
589
+ } while (rest.length > 0);
593
590
  }
594
591
  async writeToWasteStream(line, encoding) {
595
592
  var _a;
@@ -1340,7 +1337,7 @@ function userFriendlySpawn(spawn, linuxWithDisplayEnv) {
1340
1337
  function start(args_1) {
1341
1338
  return xvfb.__awaiter(this, arguments, void 0, function* (args, options = {}) {
1342
1339
  var _a, _b, _c, _d;
1343
- let executable = xvfb.util.getEnv('CYPRESS_RUN_BINARY') ?
1340
+ const executable = xvfb.util.getEnv('CYPRESS_RUN_BINARY') ?
1344
1341
  path.resolve(xvfb.util.getEnv('CYPRESS_RUN_BINARY')) :
1345
1342
  xvfb.stateModule.getPathToExecutable(xvfb.stateModule.getBinaryDir());
1346
1343
  // Always push cwd into the args
@@ -4,7 +4,7 @@ var xvfb = require('./xvfb-CbW2_YXR.js');
4
4
  var Debug = require('debug');
5
5
  var commander = require('commander');
6
6
  var path = require('path');
7
- var cli = require('./cli-BUzHfIQ2.js');
7
+ var cli = require('./cli-DoJnc1F1.js');
8
8
  var CRI = require('chrome-remote-interface');
9
9
  var chalk = require('chalk');
10
10
  var crypto = require('crypto');
@@ -33,7 +33,7 @@ require('untildify');
33
33
  require('cli-table3');
34
34
  require('dayjs');
35
35
  require('dayjs/plugin/relativeTime');
36
- require('./spawn-BNsy7yWl.js');
36
+ require('./spawn-zPuxj7Kz.js');
37
37
  require('child_process');
38
38
  require('listr2');
39
39
  require('readline');
@@ -34,7 +34,6 @@ export function setupHooks(optionalCallback) {
34
34
  Cypress.Commands.overwrite('origin', () => {
35
35
  throw new Error('cy.origin from a component spec is not allowed');
36
36
  });
37
- // @ts-ignore
38
37
  Cypress.on('test:before:after:run:async', () => {
39
38
  optionalCallback?.();
40
39
  });
@@ -34,7 +34,6 @@ export function setupHooks(optionalCallback) {
34
34
  Cypress.Commands.overwrite('origin', () => {
35
35
  throw new Error('cy.origin from a component spec is not allowed');
36
36
  });
37
- // @ts-ignore
38
37
  Cypress.on('test:before:after:run:async', () => {
39
38
  optionalCallback?.();
40
39
  });
@@ -2,7 +2,18 @@
2
2
  "name": "@cypress/mount-utils",
3
3
  "version": "0.0.0-development",
4
4
  "description": "Shared utilities for the various component testing adapters",
5
+ "homepage": "https://github.com/cypress-io/cypress/tree/develop/npm/mount-utils#readme",
6
+ "bugs": "https://github.com/cypress-io/cypress/issues/new?template=1-bug-report.md",
7
+ "repository": {
8
+ "type": "git",
9
+ "url": "git+https://github.com/cypress-io/cypress.git"
10
+ },
11
+ "license": "MIT",
5
12
  "main": "dist/index.js",
13
+ "types": "dist/index.d.ts",
14
+ "files": [
15
+ "dist"
16
+ ],
6
17
  "scripts": {
7
18
  "build": "tsc || echo 'built, with type errors'",
8
19
  "postbuild": "node ../../scripts/sync-exported-npm-with-cli.js",
@@ -10,6 +21,9 @@
10
21
  "lint": "eslint",
11
22
  "watch": "tsc -w"
12
23
  },
24
+ "lint-staged": {
25
+ "**/*.{js,jsx,ts,tsx,json}": "eslint --fix"
26
+ },
13
27
  "dependencies": {},
14
28
  "devDependencies": {
15
29
  "@packages/eslint-config": "0.0.0-development",
@@ -22,20 +36,6 @@
22
36
  "rollup-plugin-typescript2": "^0.37.0",
23
37
  "typescript": "~5.4.5"
24
38
  },
25
- "files": [
26
- "dist"
27
- ],
28
- "types": "dist/index.d.ts",
29
- "license": "MIT",
30
- "repository": {
31
- "type": "git",
32
- "url": "https://github.com/cypress-io/cypress.git"
33
- },
34
- "homepage": "https://github.com/cypress-io/cypress/tree/develop/npm/mount-utils#readme",
35
- "bugs": "https://github.com/cypress-io/cypress/issues/new?template=1-bug-report.md",
36
- "lint-staged": {
37
- "**/*.{js,jsx,ts,tsx,json}": "eslint --fix"
38
- },
39
39
  "publishConfig": {
40
40
  "access": "public"
41
41
  },
@@ -2,7 +2,18 @@
2
2
  "name": "@cypress/mount-utils",
3
3
  "version": "0.0.0-development",
4
4
  "description": "Shared utilities for the various component testing adapters",
5
+ "homepage": "https://github.com/cypress-io/cypress/tree/develop/npm/mount-utils#readme",
6
+ "bugs": "https://github.com/cypress-io/cypress/issues/new?template=1-bug-report.md",
7
+ "repository": {
8
+ "type": "git",
9
+ "url": "git+https://github.com/cypress-io/cypress.git"
10
+ },
11
+ "license": "MIT",
5
12
  "main": "dist/index.js",
13
+ "types": "dist/index.d.ts",
14
+ "files": [
15
+ "dist"
16
+ ],
6
17
  "scripts": {
7
18
  "build": "tsc || echo 'built, with type errors'",
8
19
  "postbuild": "node ../../scripts/sync-exported-npm-with-cli.js",
@@ -10,6 +21,9 @@
10
21
  "lint": "eslint",
11
22
  "watch": "tsc -w"
12
23
  },
24
+ "lint-staged": {
25
+ "**/*.{js,jsx,ts,tsx,json}": "eslint --fix"
26
+ },
13
27
  "dependencies": {},
14
28
  "devDependencies": {
15
29
  "@packages/eslint-config": "0.0.0-development",
@@ -22,20 +36,6 @@
22
36
  "rollup-plugin-typescript2": "^0.37.0",
23
37
  "typescript": "~5.4.5"
24
38
  },
25
- "files": [
26
- "dist"
27
- ],
28
- "types": "dist/index.d.ts",
29
- "license": "MIT",
30
- "repository": {
31
- "type": "git",
32
- "url": "https://github.com/cypress-io/cypress.git"
33
- },
34
- "homepage": "https://github.com/cypress-io/cypress/tree/develop/npm/mount-utils#readme",
35
- "bugs": "https://github.com/cypress-io/cypress/issues/new?template=1-bug-report.md",
36
- "lint-staged": {
37
- "**/*.{js,jsx,ts,tsx,json}": "eslint --fix"
38
- },
39
39
  "publishConfig": {
40
40
  "access": "public"
41
41
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cypress",
3
- "version": "16.1.1",
3
+ "version": "16.2.1",
4
4
  "main": "dist/index.js",
5
5
  "scripts": {
6
6
  "postinstall": "node dist/index.js --exec install",
@@ -132,8 +132,8 @@
132
132
  },
133
133
  "buildInfo": {
134
134
  "commitBranch": "develop",
135
- "commitSha": "727c47ba3b3b44f025a7b5c2b050bee4e7313e26",
136
- "commitDate": "2026-09-28T20:25:50.000Z",
135
+ "commitSha": "519d66d80b0ae1bd3f9581665ce69473b82af59b",
136
+ "commitDate": "2026-10-27T21:23:59.000Z",
137
137
  "stable": true
138
138
  },
139
139
  "description": "Cypress is a next generation front end testing tool built for the modern web",
@@ -144,7 +144,7 @@
144
144
  },
145
145
  "repository": {
146
146
  "type": "git",
147
- "url": "https://github.com/cypress-io/cypress.git"
147
+ "url": "git+https://github.com/cypress-io/cypress.git"
148
148
  },
149
149
  "keywords": [
150
150
  "automation",