cypress 13.17.0 → 14.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (73) hide show
  1. package/angular/README.md +5 -0
  2. package/angular/angular/README.md +5 -0
  3. package/angular/angular/dist/index.d.ts +11 -2
  4. package/angular/angular/dist/index.js +944 -4
  5. package/angular/angular/package.json +16 -9
  6. package/angular/dist/index.d.ts +11 -2
  7. package/angular/dist/index.js +944 -4
  8. package/angular/package.json +16 -9
  9. package/lib/cli.js +1 -30
  10. package/lib/exec/spawn.js +17 -7
  11. package/mount-utils/dist/index.d.ts +0 -28
  12. package/mount-utils/dist/index.js +0 -27
  13. package/mount-utils/mount-utils/dist/index.d.ts +0 -28
  14. package/mount-utils/mount-utils/dist/index.js +0 -27
  15. package/package.json +5 -23
  16. package/react/README.md +5 -0
  17. package/react/dist/cypress-react.cjs.js +21 -676
  18. package/react/dist/cypress-react.esm-bundler.js +22 -676
  19. package/react/dist/index.d.ts +13 -30
  20. package/react/package.json +13 -15
  21. package/react/react/README.md +5 -0
  22. package/react/react/dist/cypress-react.cjs.js +21 -676
  23. package/react/react/dist/cypress-react.esm-bundler.js +22 -676
  24. package/react/react/dist/index.d.ts +13 -30
  25. package/react/react/package.json +13 -15
  26. package/svelte/README.md +6 -2
  27. package/svelte/dist/cypress-svelte.cjs.js +12 -12
  28. package/svelte/dist/cypress-svelte.esm-bundler.js +12 -12
  29. package/svelte/dist/index.d.ts +8 -179
  30. package/svelte/package.json +2 -2
  31. package/svelte/svelte/README.md +6 -2
  32. package/svelte/svelte/dist/cypress-svelte.cjs.js +12 -12
  33. package/svelte/svelte/dist/cypress-svelte.esm-bundler.js +12 -12
  34. package/svelte/svelte/dist/index.d.ts +8 -179
  35. package/svelte/svelte/package.json +2 -2
  36. package/types/cypress.d.ts +32 -49
  37. package/types/net-stubbing.d.ts +2 -7
  38. package/vue/dist/cypress-vue.cjs.js +380 -275
  39. package/vue/dist/cypress-vue.esm-bundler.js +382 -276
  40. package/vue/dist/index.d.ts +61 -78
  41. package/vue/package.json +2 -5
  42. package/vue/vue/dist/cypress-vue.cjs.js +380 -275
  43. package/vue/vue/dist/cypress-vue.esm-bundler.js +382 -276
  44. package/vue/vue/dist/index.d.ts +61 -78
  45. package/vue/vue/package.json +2 -5
  46. package/angular-signals/README.md +0 -11
  47. package/angular-signals/angular-signals/README.md +0 -11
  48. package/angular-signals/angular-signals/dist/index.d.ts +0 -136
  49. package/angular-signals/angular-signals/dist/index.js +0 -1861
  50. package/angular-signals/angular-signals/package.json +0 -74
  51. package/angular-signals/dist/index.d.ts +0 -136
  52. package/angular-signals/dist/index.js +0 -1861
  53. package/angular-signals/package.json +0 -74
  54. package/react18/README.md +0 -7
  55. package/react18/dist/cypress-react.cjs.js +0 -597
  56. package/react18/dist/cypress-react.esm-bundler.js +0 -574
  57. package/react18/dist/index.d.ts +0 -78
  58. package/react18/package.json +0 -71
  59. package/react18/react18/README.md +0 -7
  60. package/react18/react18/dist/cypress-react.cjs.js +0 -597
  61. package/react18/react18/dist/cypress-react.esm-bundler.js +0 -574
  62. package/react18/react18/dist/index.d.ts +0 -78
  63. package/react18/react18/package.json +0 -71
  64. package/vue2/README.md +0 -7
  65. package/vue2/dist/cypress-vue2.cjs.js +0 -20045
  66. package/vue2/dist/cypress-vue2.esm-bundler.js +0 -20042
  67. package/vue2/dist/index.d.ts +0 -207
  68. package/vue2/package.json +0 -65
  69. package/vue2/vue2/README.md +0 -7
  70. package/vue2/vue2/dist/cypress-vue2.cjs.js +0 -20045
  71. package/vue2/vue2/dist/cypress-vue2.esm-bundler.js +0 -20042
  72. package/vue2/vue2/dist/index.d.ts +0 -207
  73. package/vue2/vue2/package.json +0 -65
@@ -1,29 +1,32 @@
1
1
  {
2
2
  "name": "@cypress/angular",
3
3
  "version": "0.0.0-development",
4
- "description": "Test Angular Components using Cypress",
4
+ "description": "Test Angular Components with Cypress",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {
7
7
  "prebuild": "rimraf dist",
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
+ "dev": "rollup -c rollup.config.mjs -w",
11
12
  "lint": "eslint --ext .js,.ts,.json, ."
12
13
  },
13
14
  "dependencies": {},
14
15
  "devDependencies": {
15
- "@angular/common": "^14.2.0",
16
- "@angular/core": "^14.2.0",
17
- "@angular/platform-browser-dynamic": "^14.2.0",
16
+ "@angular/common": "^17.2.0",
17
+ "@angular/core": "^17.2.0",
18
+ "@angular/platform-browser-dynamic": "^17.2.0",
18
19
  "@cypress/mount-utils": "0.0.0-development",
20
+ "rollup": "^4.24.4",
19
21
  "typescript": "~5.4.5",
20
- "zone.js": "~0.11.4"
22
+ "zone.js": "~0.14.6"
21
23
  },
22
24
  "peerDependencies": {
23
- "@angular/common": ">=13",
24
- "@angular/core": ">=13",
25
- "@angular/platform-browser-dynamic": ">=13",
26
- "zone.js": ">=0.11.0"
25
+ "@angular/common": ">=17.2",
26
+ "@angular/core": ">=17.2",
27
+ "@angular/platform-browser-dynamic": ">=17.2",
28
+ "rxjs": ">=7.5.0",
29
+ "zone.js": ">=0.13.0"
27
30
  },
28
31
  "files": [
29
32
  "dist"
@@ -44,6 +47,10 @@
44
47
  "testing"
45
48
  ],
46
49
  "contributors": [
50
+ {
51
+ "name": "Bill Glesias",
52
+ "social": "@atofstryker"
53
+ },
47
54
  {
48
55
  "name": "Jordan Powell",
49
56
  "social": "@jordanpowell88"
@@ -1,6 +1,6 @@
1
1
  /// <reference types="cypress" />
2
2
 
3
- import { Type } from '@angular/core';
3
+ import { InputSignal, WritableSignal, Type } from '@angular/core';
4
4
  import { TestModuleMetadata, ComponentFixture, TestComponentRenderer } from '@angular/core/testing';
5
5
 
6
6
  /**
@@ -48,7 +48,7 @@ interface MountConfig<T> extends TestModuleMetadata {
48
48
  * })
49
49
  */
50
50
  componentProperties?: Partial<{
51
- [P in keyof T]: T[P];
51
+ [P in keyof T]: T[P] extends InputSignal<infer V> ? InputSignal<V> | WritableSignal<V> | V : T[P];
52
52
  }>;
53
53
  }
54
54
  /**
@@ -121,6 +121,15 @@ declare function mount<T>(component: Type<T> | string, config?: MountConfig<T>):
121
121
  * cy.get('[data-cy=increment]').click()
122
122
  * cy.get('@changeSpy').should('have.been.called')
123
123
  * })
124
+ *
125
+ * // Or for use with Angular Signals following the output nomenclature.
126
+ * // see https://v17.angular.io/guide/model-inputs#differences-between-model-and-input/
127
+ *
128
+ * it('Has spy', () => {
129
+ * mount(StepperComponent, { componentProperties: { count: signal(0), countChange: createOutputSpy('countChange') } })
130
+ * cy.get('[data-cy=increment]').click()
131
+ * cy.get('@countChange').should('have.been.called')
132
+ * })
124
133
  */
125
134
  declare const createOutputSpy: <T>(alias: string) => any;
126
135