cypress 15.21.0 → 16.0.0

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 (56) hide show
  1. package/angular/README.md +4 -1
  2. package/angular/angular/README.md +4 -1
  3. package/angular/angular/dist/index.d.ts +3 -19
  4. package/angular/angular/dist/index.js +70 -84
  5. package/angular/angular/package.json +11 -12
  6. package/angular/dist/index.d.ts +3 -19
  7. package/angular/dist/index.js +70 -84
  8. package/angular/package.json +11 -12
  9. package/dist/bin/cypress +2 -2
  10. package/dist/{cli-_xePNEPj.js → cli-Dl3GL9Ov.js} +1897 -1930
  11. package/dist/cli.js +2 -2
  12. package/dist/{cypress-DCSAOi2D.js → cypress-BfVf5_hP.js} +1 -1
  13. package/dist/cypress.js +3 -3
  14. package/dist/exec/spawn.js +1 -1
  15. package/dist/index.js +3 -3
  16. package/dist/{spawn-BkpC5qQ4.js → spawn-DpvsyDKg.js} +12 -12
  17. package/dist/{tap-BkTD6Abc.js → tap-tSM1ve9x.js} +41 -19
  18. package/mount-utils/dist/index.js +1 -1
  19. package/mount-utils/mount-utils/dist/index.js +1 -1
  20. package/mount-utils/mount-utils/package.json +5 -5
  21. package/mount-utils/package.json +5 -5
  22. package/package.json +5 -11
  23. package/react/dist/cypress-react.cjs.js +1 -1
  24. package/react/dist/cypress-react.esm-bundler.js +1 -1
  25. package/react/dist/index.d.ts +2 -1
  26. package/react/package.json +2 -2
  27. package/react/react/dist/cypress-react.cjs.js +1 -1
  28. package/react/react/dist/cypress-react.esm-bundler.js +1 -1
  29. package/react/react/dist/index.d.ts +2 -1
  30. package/react/react/package.json +2 -2
  31. package/svelte/dist/cypress-svelte.cjs.js +1 -1
  32. package/svelte/dist/cypress-svelte.esm-bundler.js +1 -1
  33. package/svelte/dist/index.d.ts +2 -1
  34. package/svelte/package.json +1 -1
  35. package/svelte/svelte/dist/cypress-svelte.cjs.js +1 -1
  36. package/svelte/svelte/dist/cypress-svelte.esm-bundler.js +1 -1
  37. package/svelte/svelte/dist/index.d.ts +2 -1
  38. package/svelte/svelte/package.json +1 -1
  39. package/types/cy-blob-util.d.ts +1 -1
  40. package/types/cypress.d.ts +32 -134
  41. package/vue/dist/cypress-vue.cjs.js +62 -66
  42. package/vue/dist/cypress-vue.esm-bundler.js +50 -54
  43. package/vue/dist/index.d.ts +120 -82
  44. package/vue/package.json +4 -4
  45. package/vue/vue/dist/cypress-vue.cjs.js +62 -66
  46. package/vue/vue/dist/cypress-vue.esm-bundler.js +50 -54
  47. package/vue/vue/dist/index.d.ts +120 -82
  48. package/vue/vue/package.json +4 -4
  49. package/angular-zoneless/README.md +0 -15
  50. package/angular-zoneless/angular-zoneless/README.md +0 -15
  51. package/angular-zoneless/angular-zoneless/dist/index.d.ts +0 -119
  52. package/angular-zoneless/angular-zoneless/dist/index.js +0 -482
  53. package/angular-zoneless/angular-zoneless/package.json +0 -74
  54. package/angular-zoneless/dist/index.d.ts +0 -119
  55. package/angular-zoneless/dist/index.js +0 -482
  56. package/angular-zoneless/package.json +0 -74
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-_xePNEPj.js');
12
- require('./spawn-BkpC5qQ4.js');
11
+ var cli = require('./cli-Dl3GL9Ov.js');
12
+ require('./spawn-DpvsyDKg.js');
13
13
  require('os');
14
14
  require('bluebird');
15
15
  require('@cypress/xvfb');
@@ -3,7 +3,7 @@
3
3
  var xvfb = require('./xvfb-BKRGwxlS.js');
4
4
  var tmp = require('tmp');
5
5
  var fs = require('fs-extra');
6
- var cli$1 = require('./cli-_xePNEPj.js');
6
+ var cli$1 = require('./cli-Dl3GL9Ov.js');
7
7
 
8
8
  /**
9
9
  * Opens Cypress GUI
package/dist/cypress.js CHANGED
@@ -3,8 +3,8 @@
3
3
  require('./xvfb-BKRGwxlS.js');
4
4
  require('tmp');
5
5
  require('fs-extra');
6
- require('./cli-_xePNEPj.js');
7
- var cypress = require('./cypress-DCSAOi2D.js');
6
+ require('./cli-Dl3GL9Ov.js');
7
+ var cypress = require('./cypress-BfVf5_hP.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-BkpC5qQ4.js');
36
+ require('./spawn-DpvsyDKg.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-BkpC5qQ4.js');
9
+ var spawn = require('../spawn-DpvsyDKg.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-BKRGwxlS.js');
6
6
  var minimist = require('minimist');
7
7
  var Debug = require('debug');
8
- var cli$1 = require('./cli-_xePNEPj.js');
9
- var spawn = require('./spawn-BkpC5qQ4.js');
10
- var cypress = require('./cypress-DCSAOi2D.js');
8
+ var cli$1 = require('./cli-Dl3GL9Ov.js');
9
+ var spawn = require('./spawn-DpvsyDKg.js');
10
+ var cypress = require('./cypress-BfVf5_hP.js');
11
11
  require('os');
12
12
  require('bluebird');
13
13
  require('@cypress/xvfb');
@@ -1027,25 +1027,25 @@ var hasRequiredDist;
1027
1027
  function requireDist () {
1028
1028
  if (hasRequiredDist) return dist;
1029
1029
  hasRequiredDist = 1;
1030
- (function (exports$1) {
1031
- Object.defineProperty(exports$1, "__esModule", { value: true });
1032
- exports$1.DEBUG_PREFIX = exports$1.END_TAG = exports$1.START_TAG = exports$1.logError = exports$1.filter = exports$1.WriteToDebug = exports$1.TagStream = exports$1.FilterPrefixedContent = exports$1.FilterTaggedContent = void 0;
1030
+ (function (exports) {
1031
+ Object.defineProperty(exports, "__esModule", { value: true });
1032
+ exports.DEBUG_PREFIX = exports.END_TAG = exports.START_TAG = exports.logError = exports.filter = exports.WriteToDebug = exports.TagStream = exports.FilterPrefixedContent = exports.FilterTaggedContent = void 0;
1033
1033
  var FilterTaggedContent_1 = requireFilterTaggedContent();
1034
- Object.defineProperty(exports$1, "FilterTaggedContent", { enumerable: true, get: function () { return FilterTaggedContent_1.FilterTaggedContent; } });
1034
+ Object.defineProperty(exports, "FilterTaggedContent", { enumerable: true, get: function () { return FilterTaggedContent_1.FilterTaggedContent; } });
1035
1035
  var FilterPrefixedContent_1 = requireFilterPrefixedContent();
1036
- Object.defineProperty(exports$1, "FilterPrefixedContent", { enumerable: true, get: function () { return FilterPrefixedContent_1.FilterPrefixedContent; } });
1036
+ Object.defineProperty(exports, "FilterPrefixedContent", { enumerable: true, get: function () { return FilterPrefixedContent_1.FilterPrefixedContent; } });
1037
1037
  var TagStream_1 = requireTagStream();
1038
- Object.defineProperty(exports$1, "TagStream", { enumerable: true, get: function () { return TagStream_1.TagStream; } });
1038
+ Object.defineProperty(exports, "TagStream", { enumerable: true, get: function () { return TagStream_1.TagStream; } });
1039
1039
  var WriteToDebug_1 = requireWriteToDebug();
1040
- Object.defineProperty(exports$1, "WriteToDebug", { enumerable: true, get: function () { return WriteToDebug_1.WriteToDebug; } });
1040
+ Object.defineProperty(exports, "WriteToDebug", { enumerable: true, get: function () { return WriteToDebug_1.WriteToDebug; } });
1041
1041
  var Filter_1 = requireFilter();
1042
- Object.defineProperty(exports$1, "filter", { enumerable: true, get: function () { return Filter_1.filter; } });
1042
+ Object.defineProperty(exports, "filter", { enumerable: true, get: function () { return Filter_1.filter; } });
1043
1043
  var logError_1 = requireLogError();
1044
- Object.defineProperty(exports$1, "logError", { enumerable: true, get: function () { return logError_1.logError; } });
1044
+ Object.defineProperty(exports, "logError", { enumerable: true, get: function () { return logError_1.logError; } });
1045
1045
  var constants_1 = requireConstants();
1046
- Object.defineProperty(exports$1, "START_TAG", { enumerable: true, get: function () { return constants_1.START_TAG; } });
1047
- Object.defineProperty(exports$1, "END_TAG", { enumerable: true, get: function () { return constants_1.END_TAG; } });
1048
- Object.defineProperty(exports$1, "DEBUG_PREFIX", { enumerable: true, get: function () { return constants_1.DEBUG_PREFIX; } });
1046
+ Object.defineProperty(exports, "START_TAG", { enumerable: true, get: function () { return constants_1.START_TAG; } });
1047
+ Object.defineProperty(exports, "END_TAG", { enumerable: true, get: function () { return constants_1.END_TAG; } });
1048
+ Object.defineProperty(exports, "DEBUG_PREFIX", { enumerable: true, get: function () { return constants_1.DEBUG_PREFIX; } });
1049
1049
 
1050
1050
  } (dist));
1051
1051
  return dist;
@@ -4,7 +4,7 @@ var xvfb = require('./xvfb-BKRGwxlS.js');
4
4
  var Debug = require('debug');
5
5
  var commander = require('commander');
6
6
  var path = require('path');
7
- var cli = require('./cli-_xePNEPj.js');
7
+ var cli = require('./cli-Dl3GL9Ov.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-BkpC5qQ4.js');
36
+ require('./spawn-DpvsyDKg.js');
37
37
  require('child_process');
38
38
  require('listr2');
39
39
  require('readline');
@@ -1559,9 +1559,9 @@ var hasRequiredDist;
1559
1559
  function requireDist () {
1560
1560
  if (hasRequiredDist) return dist;
1561
1561
  hasRequiredDist = 1;
1562
- (function (exports$1) {
1563
- Object.defineProperty(exports$1, "__esModule", { value: true });
1564
- exports$1.isAgent = exports$1.detectAgent = void 0;
1562
+ (function (exports) {
1563
+ Object.defineProperty(exports, "__esModule", { value: true });
1564
+ exports.isAgent = exports.detectAgent = void 0;
1565
1565
  const envMatcher = (key, regex, opts = {}) => {
1566
1566
  return (env) => {
1567
1567
  var _a, _b;
@@ -1612,11 +1612,11 @@ function requireDist () {
1612
1612
  }
1613
1613
  return env.AI_AGENT ? fromAiAgent(env.AI_AGENT) : undefined;
1614
1614
  };
1615
- exports$1.detectAgent = detectAgent;
1615
+ exports.detectAgent = detectAgent;
1616
1616
  const isAgent = (env = process.env) => {
1617
- return !!(0, exports$1.detectAgent)(env);
1617
+ return !!(0, exports.detectAgent)(env);
1618
1618
  };
1619
- exports$1.isAgent = isAgent;
1619
+ exports.isAgent = isAgent;
1620
1620
 
1621
1621
  } (dist));
1622
1622
  return dist;
@@ -1954,7 +1954,6 @@ const statusCommand = defineNativeCommand('status', reportStatus);
1954
1954
 
1955
1955
  const debug$2 = Debug('cypress:cli:tap');
1956
1956
  const GRAPHQL_HOST = '127.0.0.1';
1957
- const GRAPHQL_PATH = '/__cypress/graphql';
1958
1957
  const DEFAULT_QUERY_TIMEOUT_MS = 4000;
1959
1958
  const firstErrorMessage = (envelopeErrors) => {
1960
1959
  const first = Array.isArray(envelopeErrors) ? envelopeErrors[0] : undefined;
@@ -1976,28 +1975,51 @@ const validateEnvelope = (operationName, envelope) => {
1976
1975
  }
1977
1976
  return envelope.data;
1978
1977
  };
1978
+ // Whether the session served this path at all. The force-proxy guard redirects an
1979
+ // unrecognized path to the runner page while the MITM proxy is on, and Express 404s
1980
+ // it when CDP owns browser traffic instead; graphql itself answers 400 or 500, so
1981
+ // neither of these comes from the query.
1982
+ const isUnservedPath = (response) => {
1983
+ return response.redirected || response.status === 404;
1984
+ };
1985
+ // A session serving neither path is the reason for the failure, so the fault lies with
1986
+ // it rather than the request. Its liveness probe tells the two apart: the route is
1987
+ // unnamespaced and present in every build that has tap, so an answer means a live
1988
+ // session that simply predates the tap route, and silence means it is gone.
1989
+ const throwForUnservedPaths = (session, operationName) => xvfb.__awaiter(void 0, void 0, void 0, function* () {
1990
+ const live = yield cli.verifySessionRecord(session);
1991
+ if (live === null) {
1992
+ return throwTapError('STALE_SESSION', `The session stopped answering while running ${operationName}.`);
1993
+ }
1994
+ return throwTapError('SESSION_OUTDATED', `The session does not serve ${operationName} over tap GraphQL.`);
1995
+ });
1979
1996
  const querySessionGraphql = (session_1, operation_1, ...args_1) => xvfb.__awaiter(void 0, [session_1, operation_1, ...args_1], void 0, function* (session, operation, timeoutMs = DEFAULT_QUERY_TIMEOUT_MS) {
1980
1997
  const { operationName, query, variables } = operation;
1981
- const url = `http://${GRAPHQL_HOST}:${session.serverPort}${GRAPHQL_PATH}/${operationName}`;
1982
- let response;
1983
- try {
1984
- response = yield fetch(url, {
1998
+ const post = (path) => {
1999
+ return fetch(`http://${GRAPHQL_HOST}:${session.serverPort}${path}`, {
1985
2000
  method: 'POST',
1986
2001
  headers: { 'content-type': 'application/json', [cli.distExports.SESSION_ID_HEADER]: session.sessionId },
1987
2002
  body: JSON.stringify({ operationName, query, variables: variables !== null && variables !== void 0 ? variables : {} }),
1988
2003
  signal: AbortSignal.timeout(timeoutMs),
1989
2004
  });
2005
+ };
2006
+ let response;
2007
+ try {
2008
+ response = yield post(cli.distExports.tapGraphqlPath(operationName));
2009
+ // Sessions that predate the fixed tap route only serve GraphQL under the project's
2010
+ // `namespace`, so retry the default one — every such session that did not override
2011
+ // it answers there.
2012
+ if (isUnservedPath(response)) {
2013
+ debug$2('graphql request %s to pid %d went unserved; retrying the legacy path', operationName, session.pid);
2014
+ response = yield post(`${cli.distExports.LEGACY_TAP_GRAPHQL_PATH}/${operationName}`);
2015
+ }
1990
2016
  }
1991
2017
  catch (err) {
1992
2018
  debug$2('graphql request %s to pid %d failed: %o', operationName, session.pid, err);
1993
2019
  return throwTapError('GRAPHQL_UNREACHABLE', `Could not reach the session to run ${operationName}: ${err.message}`, err);
1994
2020
  }
1995
- // A valid request passes the server's force-proxy guard untouched; a redirect
1996
- // means the guard sent us to the runner page because the session doesn't allow
1997
- // direct tap GraphQL — an older Cypress that predates it (or one that rejected
1998
- // our session-id). Report that instead of the runner HTML as a data error.
1999
- if (response.redirected) {
2000
- return throwTapError('SESSION_OUTDATED', `The session redirected the ${operationName} request instead of answering it, so it does not support direct tap GraphQL.`);
2021
+ if (isUnservedPath(response)) {
2022
+ return yield throwForUnservedPaths(session, operationName);
2001
2023
  }
2002
2024
  if (response.status !== 200) {
2003
2025
  // express-graphql answers parse/validation failures with 400 + { errors: [...] };
@@ -36,6 +36,6 @@ export function setupHooks(optionalCallback) {
36
36
  });
37
37
  // @ts-ignore
38
38
  Cypress.on('test:before:after:run:async', () => {
39
- optionalCallback === null || optionalCallback === void 0 ? void 0 : optionalCallback();
39
+ optionalCallback?.();
40
40
  });
41
41
  }
@@ -36,6 +36,6 @@ export function setupHooks(optionalCallback) {
36
36
  });
37
37
  // @ts-ignore
38
38
  Cypress.on('test:before:after:run:async', () => {
39
- optionalCallback === null || optionalCallback === void 0 ? void 0 : optionalCallback();
39
+ optionalCallback?.();
40
40
  });
41
41
  }
@@ -13,13 +13,13 @@
13
13
  "dependencies": {},
14
14
  "devDependencies": {
15
15
  "@packages/eslint-config": "0.0.0-development",
16
- "@rollup/plugin-commonjs": "^17.1.0",
17
- "@rollup/plugin-node-resolve": "^11.2.1",
16
+ "@rollup/plugin-commonjs": "^29.0.2",
17
+ "@rollup/plugin-node-resolve": "^16.0.3",
18
18
  "eslint": "^9.31.0",
19
19
  "lodash": "^4.17.21",
20
- "rollup": "3.29.5",
21
- "rollup-plugin-dts": "5.0.0",
22
- "rollup-plugin-typescript2": "^0.29.0",
20
+ "rollup": "4.60.2",
21
+ "rollup-plugin-dts": "6.4.1",
22
+ "rollup-plugin-typescript2": "^0.37.0",
23
23
  "typescript": "~5.4.5"
24
24
  },
25
25
  "files": [
@@ -13,13 +13,13 @@
13
13
  "dependencies": {},
14
14
  "devDependencies": {
15
15
  "@packages/eslint-config": "0.0.0-development",
16
- "@rollup/plugin-commonjs": "^17.1.0",
17
- "@rollup/plugin-node-resolve": "^11.2.1",
16
+ "@rollup/plugin-commonjs": "^29.0.2",
17
+ "@rollup/plugin-node-resolve": "^16.0.3",
18
18
  "eslint": "^9.31.0",
19
19
  "lodash": "^4.17.21",
20
- "rollup": "3.29.5",
21
- "rollup-plugin-dts": "5.0.0",
22
- "rollup-plugin-typescript2": "^0.29.0",
20
+ "rollup": "4.60.2",
21
+ "rollup-plugin-dts": "6.4.1",
22
+ "rollup-plugin-typescript2": "^0.37.0",
23
23
  "typescript": "~5.4.5"
24
24
  },
25
25
  "files": [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cypress",
3
- "version": "15.21.0",
3
+ "version": "16.0.0",
4
4
  "main": "dist/index.js",
5
5
  "scripts": {
6
6
  "postinstall": "node dist/index.js --exec install",
@@ -23,7 +23,7 @@
23
23
  "cli-table3": "0.6.1",
24
24
  "commander": "^6.2.1",
25
25
  "common-tags": "^1.8.0",
26
- "dayjs": "^1.10.4",
26
+ "dayjs": "^1.11.23",
27
27
  "debug": "^4.3.4",
28
28
  "eventemitter2": "6.4.7",
29
29
  "execa": "4.1.0",
@@ -55,14 +55,13 @@
55
55
  "vue",
56
56
  "react",
57
57
  "angular",
58
- "angular-zoneless",
59
58
  "svelte"
60
59
  ],
61
60
  "bin": {
62
61
  "cypress": "bin/cypress"
63
62
  },
64
63
  "engines": {
65
- "node": "^20.1.0 || ^22.0.0 || >=24.0.0"
64
+ "node": "^22.0.0 || ^24.0.0 || >=26.0.0"
66
65
  },
67
66
  "types": "types",
68
67
  "exports": {
@@ -97,11 +96,6 @@
97
96
  "import": "./angular/dist/index.js",
98
97
  "require": "./angular/dist/index.js"
99
98
  },
100
- "./angular-zoneless": {
101
- "types": "./angular-zoneless/dist/index.d.ts",
102
- "import": "./angular-zoneless/dist/index.js",
103
- "require": "./angular-zoneless/dist/index.js"
104
- },
105
99
  "./svelte": {
106
100
  "types": "./svelte/dist/index.d.ts",
107
101
  "import": "./svelte/dist/cypress-svelte.esm-bundler.js",
@@ -138,8 +132,8 @@
138
132
  },
139
133
  "buildInfo": {
140
134
  "commitBranch": "develop",
141
- "commitSha": "f7281bae34c0895a29e67d1c6d87b8fe7d0f4e27",
142
- "commitDate": "2026-08-18T16:13:49.000Z",
135
+ "commitSha": "9467a6e7f4645fe7a99a35fbc642d5e10d849cce",
136
+ "commitDate": "2026-08-31T19:15:10.000Z",
143
137
  "stable": true
144
138
  },
145
139
  "description": "Cypress is a next generation front end testing tool built for the modern web",
@@ -104,7 +104,7 @@ function setupHooks(optionalCallback) {
104
104
  });
105
105
  // @ts-ignore
106
106
  Cypress.on('test:before:after:run:async', () => {
107
- optionalCallback === null || optionalCallback === void 0 ? void 0 : optionalCallback();
107
+ optionalCallback?.();
108
108
  });
109
109
  }
110
110
 
@@ -83,7 +83,7 @@ function setupHooks(optionalCallback) {
83
83
  });
84
84
  // @ts-ignore
85
85
  Cypress.on('test:before:after:run:async', () => {
86
- optionalCallback === null || optionalCallback === void 0 ? void 0 : optionalCallback();
86
+ optionalCallback?.();
87
87
  });
88
88
  }
89
89
 
@@ -91,4 +91,5 @@ declare const getContainerEl: () => HTMLElement;
91
91
  */
92
92
  declare function mount(jsx: React__default.ReactNode, options?: MountOptions, rerenderKey?: string): Cypress.Chainable<MountReturn>;
93
93
 
94
- export { InternalMountOptions, MountOptions, MountReactComponentOptions, MountReturn, UnmountArgs, createMount, getContainerEl, makeMountFn, makeUnmountFn, mount };
94
+ export { createMount, getContainerEl, makeMountFn, makeUnmountFn, mount };
95
+ export type { InternalMountOptions, MountOptions, MountReactComponentOptions, MountReturn, UnmountArgs };
@@ -29,9 +29,9 @@
29
29
  "react-dom": "18.3.1",
30
30
  "react-router": "6.28.0",
31
31
  "react-router-dom": "6.28.0",
32
- "rollup": "3.29.5",
32
+ "rollup": "^4.60.2",
33
33
  "typescript": "~5.4.5",
34
- "vite": "6.3.5"
34
+ "vite": "^8.0.9"
35
35
  },
36
36
  "peerDependencies": {
37
37
  "@types/react": "^18 || ^19",
@@ -104,7 +104,7 @@ function setupHooks(optionalCallback) {
104
104
  });
105
105
  // @ts-ignore
106
106
  Cypress.on('test:before:after:run:async', () => {
107
- optionalCallback === null || optionalCallback === void 0 ? void 0 : optionalCallback();
107
+ optionalCallback?.();
108
108
  });
109
109
  }
110
110
 
@@ -83,7 +83,7 @@ function setupHooks(optionalCallback) {
83
83
  });
84
84
  // @ts-ignore
85
85
  Cypress.on('test:before:after:run:async', () => {
86
- optionalCallback === null || optionalCallback === void 0 ? void 0 : optionalCallback();
86
+ optionalCallback?.();
87
87
  });
88
88
  }
89
89
 
@@ -91,4 +91,5 @@ declare const getContainerEl: () => HTMLElement;
91
91
  */
92
92
  declare function mount(jsx: React__default.ReactNode, options?: MountOptions, rerenderKey?: string): Cypress.Chainable<MountReturn>;
93
93
 
94
- export { InternalMountOptions, MountOptions, MountReactComponentOptions, MountReturn, UnmountArgs, createMount, getContainerEl, makeMountFn, makeUnmountFn, mount };
94
+ export { createMount, getContainerEl, makeMountFn, makeUnmountFn, mount };
95
+ export type { InternalMountOptions, MountOptions, MountReactComponentOptions, MountReturn, UnmountArgs };
@@ -29,9 +29,9 @@
29
29
  "react-dom": "18.3.1",
30
30
  "react-router": "6.28.0",
31
31
  "react-router-dom": "6.28.0",
32
- "rollup": "3.29.5",
32
+ "rollup": "^4.60.2",
33
33
  "typescript": "~5.4.5",
34
- "vite": "6.3.5"
34
+ "vite": "^8.0.9"
35
35
  },
36
36
  "peerDependencies": {
37
37
  "@types/react": "^18 || ^19",
@@ -47,7 +47,7 @@ function setupHooks(optionalCallback) {
47
47
  });
48
48
  // @ts-ignore
49
49
  Cypress.on('test:before:after:run:async', () => {
50
- optionalCallback === null || optionalCallback === void 0 ? void 0 : optionalCallback();
50
+ optionalCallback?.();
51
51
  });
52
52
  }
53
53
 
@@ -45,7 +45,7 @@ function setupHooks(optionalCallback) {
45
45
  });
46
46
  // @ts-ignore
47
47
  Cypress.on('test:before:after:run:async', () => {
48
- optionalCallback === null || optionalCallback === void 0 ? void 0 : optionalCallback();
48
+ optionalCallback?.();
49
49
  });
50
50
  }
51
51
 
@@ -27,4 +27,5 @@ declare function mount(Component: Component<Record<string, any>, Record<string,
27
27
  log?: boolean;
28
28
  }): Cypress.Chainable<MountReturn>;
29
29
 
30
- export { MountReturn, mount };
30
+ export { mount };
31
+ export type { MountReturn };
@@ -15,7 +15,7 @@
15
15
  "@cypress/mount-utils": "0.0.0-development",
16
16
  "eslint": "^9.31.0",
17
17
  "jiti": "^2.4.2",
18
- "rollup": "3.29.5",
18
+ "rollup": "^4.60.2",
19
19
  "svelte": "^5.4.0",
20
20
  "typescript": "~5.4.5"
21
21
  },
@@ -47,7 +47,7 @@ function setupHooks(optionalCallback) {
47
47
  });
48
48
  // @ts-ignore
49
49
  Cypress.on('test:before:after:run:async', () => {
50
- optionalCallback === null || optionalCallback === void 0 ? void 0 : optionalCallback();
50
+ optionalCallback?.();
51
51
  });
52
52
  }
53
53
 
@@ -45,7 +45,7 @@ function setupHooks(optionalCallback) {
45
45
  });
46
46
  // @ts-ignore
47
47
  Cypress.on('test:before:after:run:async', () => {
48
- optionalCallback === null || optionalCallback === void 0 ? void 0 : optionalCallback();
48
+ optionalCallback?.();
49
49
  });
50
50
  }
51
51
 
@@ -27,4 +27,5 @@ declare function mount(Component: Component<Record<string, any>, Record<string,
27
27
  log?: boolean;
28
28
  }): Cypress.Chainable<MountReturn>;
29
29
 
30
- export { MountReturn, mount };
30
+ export { mount };
31
+ export type { MountReturn };
@@ -15,7 +15,7 @@
15
15
  "@cypress/mount-utils": "0.0.0-development",
16
16
  "eslint": "^9.31.0",
17
17
  "jiti": "^2.4.2",
18
- "rollup": "3.29.5",
18
+ "rollup": "^4.60.2",
19
19
  "svelte": "^5.4.0",
20
20
  "typescript": "~5.4.5"
21
21
  },
@@ -3,7 +3,7 @@
3
3
  // so that Cypress can get and use the Blob type
4
4
 
5
5
  // tslint:disable-next-line:no-implicit-dependencies
6
- import * as blobUtil from 'blob-util'
6
+ import type * as blobUtil from 'blob-util'
7
7
 
8
8
  export = BlobUtil
9
9
  export as namespace BlobUtil