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
@@ -100,7 +100,6 @@ function setupHooks(optionalCallback) {
100
100
  Cypress.Commands.overwrite('origin', () => {
101
101
  throw new Error('cy.origin from a component spec is not allowed');
102
102
  });
103
- // @ts-ignore
104
103
  Cypress.on('test:before:after:run:async', () => {
105
104
  optionalCallback?.();
106
105
  });
@@ -8623,7 +8622,7 @@ function mount(componentOptions, options = {}) {
8623
8622
  // then wait for cypress to load
8624
8623
  return cy.then(() => {
8625
8624
  var _a, _b;
8626
- // @ts-ignore
8625
+ // @ts-expect-error - `cy.state` is internal and not in the public Cypress types
8627
8626
  const document = cy.state('document');
8628
8627
  const el = getContainerEl();
8629
8628
  // merge the extensions with global
@@ -80,7 +80,6 @@ function setupHooks(optionalCallback) {
80
80
  Cypress.Commands.overwrite('origin', () => {
81
81
  throw new Error('cy.origin from a component spec is not allowed');
82
82
  });
83
- // @ts-ignore
84
83
  Cypress.on('test:before:after:run:async', () => {
85
84
  optionalCallback?.();
86
85
  });
@@ -8603,7 +8602,7 @@ function mount(componentOptions, options = {}) {
8603
8602
  // then wait for cypress to load
8604
8603
  return cy.then(() => {
8605
8604
  var _a, _b;
8606
- // @ts-ignore
8605
+ // @ts-expect-error - `cy.state` is internal and not in the public Cypress types
8607
8606
  const document = cy.state('document');
8608
8607
  const el = getContainerEl();
8609
8608
  // merge the extensions with global
package/vue/package.json CHANGED
@@ -2,11 +2,33 @@
2
2
  "name": "@cypress/vue",
3
3
  "version": "0.0.0-development",
4
4
  "description": "Browser-based Component Testing for Vue.js with Cypress.io",
5
+ "keywords": [
6
+ "cypress",
7
+ "vue",
8
+ "vue3",
9
+ "component-testing",
10
+ "vue-testing",
11
+ "testing",
12
+ "sfc"
13
+ ],
14
+ "homepage": "https://github.com/cypress-io/cypress/blob/develop/npm/vue/#readme",
15
+ "bugs": "https://github.com/cypress-io/cypress/issues/new?assignees=&labels=npm%3A%20%40cypress%2Fvue&template=1-bug-report.md&title=",
16
+ "repository": {
17
+ "type": "git",
18
+ "url": "git+https://github.com/cypress-io/cypress.git"
19
+ },
20
+ "license": "MIT",
5
21
  "main": "dist/cypress-vue.cjs.js",
22
+ "module": "dist/cypress-vue.esm-bundler.js",
23
+ "types": "dist/index.d.ts",
24
+ "files": [
25
+ "dist/**/*",
26
+ "src/**/*.js"
27
+ ],
6
28
  "scripts": {
7
29
  "build": "rimraf dist && rollup -c rollup.config.mjs",
8
30
  "postbuild": "node ../../scripts/sync-exported-npm-with-cli.js",
9
- "check-ts": "yarn tsd && vue-tsc --noEmit",
31
+ "check-ts": "yarn tsd && vue-tsc --noEmit && vue-tsc --noEmit -p cypress/tsconfig.json",
10
32
  "cy:open": "node ../../scripts/cypress.js open --component --project ${PWD}",
11
33
  "cy:run": "node ../../scripts/cypress.js run --component --project ${PWD}",
12
34
  "lint": "eslint",
@@ -14,21 +36,26 @@
14
36
  "tsd": "yarn build && yarn tsc -p test-tsd/tsconfig.json",
15
37
  "watch": "yarn build --watch --watch.exclude ./dist/**/*"
16
38
  },
39
+ "lint-staged": {
40
+ "**/*.{js,jsx,ts,tsx,json,vue}": "eslint --fix"
41
+ },
17
42
  "devDependencies": {
18
- "@packages/eslint-config": "0.0.0-development",
19
43
  "@cypress/mount-utils": "0.0.0-development",
20
- "eslint": "^9.31.0",
21
- "jiti": "^2.4.2",
44
+ "@cypress/vite-plugin-cypress-esm": "0.0.0-development",
45
+ "@intlify/unplugin-vue-i18n": "11.2.5",
46
+ "@packages/eslint-config": "0.0.0-development",
22
47
  "@vitejs/plugin-vue": "6.0.6",
23
48
  "@vue/compiler-sfc": "3.2.47",
24
49
  "@vue/test-utils": "2.4.6",
25
50
  "axios": "^1.20.0",
26
51
  "cypress": "0.0.0-development",
52
+ "eslint": "^9.31.0",
53
+ "jiti": "^2.4.2",
27
54
  "rollup": "^4.60.2",
28
55
  "typescript": "~5.4.5",
29
56
  "vite": "^8.0.9",
30
- "vue-eslint-parser": "^10.0.0",
31
57
  "vue": "3.2.47",
58
+ "vue-eslint-parser": "^10.0.0",
32
59
  "vue-i18n": "9.14.5",
33
60
  "vue-router": "^4.0.0",
34
61
  "vue-tsc": "^2.0.19",
@@ -39,45 +66,14 @@
39
66
  "cypress": ">=7.0.0",
40
67
  "vue": ">=3.0.0"
41
68
  },
42
- "files": [
43
- "dist/**/*",
44
- "src/**/*.js"
45
- ],
46
- "engines": {
47
- "node": "^22.0.0 || ^24.0.0 || >=26.0.0"
48
- },
49
- "types": "dist/index.d.ts",
50
- "license": "MIT",
51
- "repository": {
52
- "type": "git",
53
- "url": "https://github.com/cypress-io/cypress.git"
54
- },
55
- "homepage": "https://github.com/cypress-io/cypress/blob/develop/npm/vue/#readme",
56
- "bugs": "https://github.com/cypress-io/cypress/issues/new?assignees=&labels=npm%3A%20%40cypress%2Fvue&template=1-bug-report.md&title=",
57
- "keywords": [
58
- "cypress",
59
- "vue"
60
- ],
61
- "contributors": [
62
- {
63
- "name": "Jessica Sachs",
64
- "social": "@JessicaSachs"
65
- },
66
- {
67
- "name": "Amir Rustamzadeh",
68
- "social": "@amirrustam"
69
- },
70
- {
71
- "name": "Lachlan Miller",
72
- "social": "@Lachlan19900"
73
- }
74
- ],
75
- "module": "dist/cypress-vue.esm-bundler.js",
76
69
  "peerDependenciesMeta": {
77
70
  "@cypress/webpack-dev-server": {
78
71
  "optional": true
79
72
  }
80
73
  },
74
+ "engines": {
75
+ "node": "^22.0.0 || ^24.0.0 || >=26.0.0"
76
+ },
81
77
  "publishConfig": {
82
78
  "access": "public"
83
79
  },
@@ -90,8 +86,5 @@
90
86
  ]
91
87
  }
92
88
  }
93
- },
94
- "lint-staged": {
95
- "**/*.{js,jsx,ts,tsx,vue}": "eslint --fix"
96
89
  }
97
90
  }
@@ -100,7 +100,6 @@ function setupHooks(optionalCallback) {
100
100
  Cypress.Commands.overwrite('origin', () => {
101
101
  throw new Error('cy.origin from a component spec is not allowed');
102
102
  });
103
- // @ts-ignore
104
103
  Cypress.on('test:before:after:run:async', () => {
105
104
  optionalCallback?.();
106
105
  });
@@ -8623,7 +8622,7 @@ function mount(componentOptions, options = {}) {
8623
8622
  // then wait for cypress to load
8624
8623
  return cy.then(() => {
8625
8624
  var _a, _b;
8626
- // @ts-ignore
8625
+ // @ts-expect-error - `cy.state` is internal and not in the public Cypress types
8627
8626
  const document = cy.state('document');
8628
8627
  const el = getContainerEl();
8629
8628
  // merge the extensions with global
@@ -80,7 +80,6 @@ function setupHooks(optionalCallback) {
80
80
  Cypress.Commands.overwrite('origin', () => {
81
81
  throw new Error('cy.origin from a component spec is not allowed');
82
82
  });
83
- // @ts-ignore
84
83
  Cypress.on('test:before:after:run:async', () => {
85
84
  optionalCallback?.();
86
85
  });
@@ -8603,7 +8602,7 @@ function mount(componentOptions, options = {}) {
8603
8602
  // then wait for cypress to load
8604
8603
  return cy.then(() => {
8605
8604
  var _a, _b;
8606
- // @ts-ignore
8605
+ // @ts-expect-error - `cy.state` is internal and not in the public Cypress types
8607
8606
  const document = cy.state('document');
8608
8607
  const el = getContainerEl();
8609
8608
  // merge the extensions with global
@@ -2,11 +2,33 @@
2
2
  "name": "@cypress/vue",
3
3
  "version": "0.0.0-development",
4
4
  "description": "Browser-based Component Testing for Vue.js with Cypress.io",
5
+ "keywords": [
6
+ "cypress",
7
+ "vue",
8
+ "vue3",
9
+ "component-testing",
10
+ "vue-testing",
11
+ "testing",
12
+ "sfc"
13
+ ],
14
+ "homepage": "https://github.com/cypress-io/cypress/blob/develop/npm/vue/#readme",
15
+ "bugs": "https://github.com/cypress-io/cypress/issues/new?assignees=&labels=npm%3A%20%40cypress%2Fvue&template=1-bug-report.md&title=",
16
+ "repository": {
17
+ "type": "git",
18
+ "url": "git+https://github.com/cypress-io/cypress.git"
19
+ },
20
+ "license": "MIT",
5
21
  "main": "dist/cypress-vue.cjs.js",
22
+ "module": "dist/cypress-vue.esm-bundler.js",
23
+ "types": "dist/index.d.ts",
24
+ "files": [
25
+ "dist/**/*",
26
+ "src/**/*.js"
27
+ ],
6
28
  "scripts": {
7
29
  "build": "rimraf dist && rollup -c rollup.config.mjs",
8
30
  "postbuild": "node ../../scripts/sync-exported-npm-with-cli.js",
9
- "check-ts": "yarn tsd && vue-tsc --noEmit",
31
+ "check-ts": "yarn tsd && vue-tsc --noEmit && vue-tsc --noEmit -p cypress/tsconfig.json",
10
32
  "cy:open": "node ../../scripts/cypress.js open --component --project ${PWD}",
11
33
  "cy:run": "node ../../scripts/cypress.js run --component --project ${PWD}",
12
34
  "lint": "eslint",
@@ -14,21 +36,26 @@
14
36
  "tsd": "yarn build && yarn tsc -p test-tsd/tsconfig.json",
15
37
  "watch": "yarn build --watch --watch.exclude ./dist/**/*"
16
38
  },
39
+ "lint-staged": {
40
+ "**/*.{js,jsx,ts,tsx,json,vue}": "eslint --fix"
41
+ },
17
42
  "devDependencies": {
18
- "@packages/eslint-config": "0.0.0-development",
19
43
  "@cypress/mount-utils": "0.0.0-development",
20
- "eslint": "^9.31.0",
21
- "jiti": "^2.4.2",
44
+ "@cypress/vite-plugin-cypress-esm": "0.0.0-development",
45
+ "@intlify/unplugin-vue-i18n": "11.2.5",
46
+ "@packages/eslint-config": "0.0.0-development",
22
47
  "@vitejs/plugin-vue": "6.0.6",
23
48
  "@vue/compiler-sfc": "3.2.47",
24
49
  "@vue/test-utils": "2.4.6",
25
50
  "axios": "^1.20.0",
26
51
  "cypress": "0.0.0-development",
52
+ "eslint": "^9.31.0",
53
+ "jiti": "^2.4.2",
27
54
  "rollup": "^4.60.2",
28
55
  "typescript": "~5.4.5",
29
56
  "vite": "^8.0.9",
30
- "vue-eslint-parser": "^10.0.0",
31
57
  "vue": "3.2.47",
58
+ "vue-eslint-parser": "^10.0.0",
32
59
  "vue-i18n": "9.14.5",
33
60
  "vue-router": "^4.0.0",
34
61
  "vue-tsc": "^2.0.19",
@@ -39,45 +66,14 @@
39
66
  "cypress": ">=7.0.0",
40
67
  "vue": ">=3.0.0"
41
68
  },
42
- "files": [
43
- "dist/**/*",
44
- "src/**/*.js"
45
- ],
46
- "engines": {
47
- "node": "^22.0.0 || ^24.0.0 || >=26.0.0"
48
- },
49
- "types": "dist/index.d.ts",
50
- "license": "MIT",
51
- "repository": {
52
- "type": "git",
53
- "url": "https://github.com/cypress-io/cypress.git"
54
- },
55
- "homepage": "https://github.com/cypress-io/cypress/blob/develop/npm/vue/#readme",
56
- "bugs": "https://github.com/cypress-io/cypress/issues/new?assignees=&labels=npm%3A%20%40cypress%2Fvue&template=1-bug-report.md&title=",
57
- "keywords": [
58
- "cypress",
59
- "vue"
60
- ],
61
- "contributors": [
62
- {
63
- "name": "Jessica Sachs",
64
- "social": "@JessicaSachs"
65
- },
66
- {
67
- "name": "Amir Rustamzadeh",
68
- "social": "@amirrustam"
69
- },
70
- {
71
- "name": "Lachlan Miller",
72
- "social": "@Lachlan19900"
73
- }
74
- ],
75
- "module": "dist/cypress-vue.esm-bundler.js",
76
69
  "peerDependenciesMeta": {
77
70
  "@cypress/webpack-dev-server": {
78
71
  "optional": true
79
72
  }
80
73
  },
74
+ "engines": {
75
+ "node": "^22.0.0 || ^24.0.0 || >=26.0.0"
76
+ },
81
77
  "publishConfig": {
82
78
  "access": "public"
83
79
  },
@@ -90,8 +86,5 @@
90
86
  ]
91
87
  }
92
88
  }
93
- },
94
- "lint-staged": {
95
- "**/*.{js,jsx,ts,tsx,vue}": "eslint --fix"
96
89
  }
97
90
  }