cypress 13.17.0 → 14.0.1
Sign up to get free protection for your applications and to get access to all the features.
- package/angular/README.md +5 -0
- package/angular/angular/README.md +5 -0
- package/angular/angular/dist/index.d.ts +11 -2
- package/angular/angular/dist/index.js +944 -4
- package/angular/angular/package.json +16 -9
- package/angular/dist/index.d.ts +11 -2
- package/angular/dist/index.js +944 -4
- package/angular/package.json +16 -9
- package/lib/cli.js +1 -30
- package/lib/exec/spawn.js +29 -7
- package/mount-utils/dist/index.d.ts +0 -28
- package/mount-utils/dist/index.js +0 -27
- package/mount-utils/mount-utils/dist/index.d.ts +0 -28
- package/mount-utils/mount-utils/dist/index.js +0 -27
- package/package.json +5 -23
- package/react/README.md +5 -0
- package/react/dist/cypress-react.cjs.js +21 -676
- package/react/dist/cypress-react.esm-bundler.js +22 -676
- package/react/dist/index.d.ts +13 -30
- package/react/package.json +13 -15
- package/react/react/README.md +5 -0
- package/react/react/dist/cypress-react.cjs.js +21 -676
- package/react/react/dist/cypress-react.esm-bundler.js +22 -676
- package/react/react/dist/index.d.ts +13 -30
- package/react/react/package.json +13 -15
- package/svelte/README.md +6 -2
- package/svelte/dist/cypress-svelte.cjs.js +12 -12
- package/svelte/dist/cypress-svelte.esm-bundler.js +12 -12
- package/svelte/dist/index.d.ts +8 -179
- package/svelte/package.json +2 -2
- package/svelte/svelte/README.md +6 -2
- package/svelte/svelte/dist/cypress-svelte.cjs.js +12 -12
- package/svelte/svelte/dist/cypress-svelte.esm-bundler.js +12 -12
- package/svelte/svelte/dist/index.d.ts +8 -179
- package/svelte/svelte/package.json +2 -2
- package/types/cypress.d.ts +32 -49
- package/types/net-stubbing.d.ts +2 -7
- package/vue/dist/cypress-vue.cjs.js +380 -275
- package/vue/dist/cypress-vue.esm-bundler.js +382 -276
- package/vue/dist/index.d.ts +61 -78
- package/vue/package.json +2 -5
- package/vue/vue/dist/cypress-vue.cjs.js +380 -275
- package/vue/vue/dist/cypress-vue.esm-bundler.js +382 -276
- package/vue/vue/dist/index.d.ts +61 -78
- package/vue/vue/package.json +2 -5
- package/angular-signals/README.md +0 -11
- package/angular-signals/angular-signals/README.md +0 -11
- package/angular-signals/angular-signals/dist/index.d.ts +0 -136
- package/angular-signals/angular-signals/dist/index.js +0 -1861
- package/angular-signals/angular-signals/package.json +0 -74
- package/angular-signals/dist/index.d.ts +0 -136
- package/angular-signals/dist/index.js +0 -1861
- package/angular-signals/package.json +0 -74
- package/react18/README.md +0 -7
- package/react18/dist/cypress-react.cjs.js +0 -597
- package/react18/dist/cypress-react.esm-bundler.js +0 -574
- package/react18/dist/index.d.ts +0 -78
- package/react18/package.json +0 -71
- package/react18/react18/README.md +0 -7
- package/react18/react18/dist/cypress-react.cjs.js +0 -597
- package/react18/react18/dist/cypress-react.esm-bundler.js +0 -574
- package/react18/react18/dist/index.d.ts +0 -78
- package/react18/react18/package.json +0 -71
- package/vue2/README.md +0 -7
- package/vue2/dist/cypress-vue2.cjs.js +0 -20045
- package/vue2/dist/cypress-vue2.esm-bundler.js +0 -20042
- package/vue2/dist/index.d.ts +0 -207
- package/vue2/package.json +0 -65
- package/vue2/vue2/README.md +0 -7
- package/vue2/vue2/dist/cypress-vue2.cjs.js +0 -20045
- package/vue2/vue2/dist/cypress-vue2.esm-bundler.js +0 -20042
- package/vue2/vue2/dist/index.d.ts +0 -207
- 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
|
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": "^
|
16
|
-
"@angular/core": "^
|
17
|
-
"@angular/platform-browser-dynamic": "^
|
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.
|
22
|
+
"zone.js": "~0.14.6"
|
21
23
|
},
|
22
24
|
"peerDependencies": {
|
23
|
-
"@angular/common": ">=
|
24
|
-
"@angular/core": ">=
|
25
|
-
"@angular/platform-browser-dynamic": ">=
|
26
|
-
"
|
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"
|
package/angular/dist/index.d.ts
CHANGED
@@ -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
|
|