cypress 13.16.1 → 14.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.
- 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 +17 -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
package/angular/README.md
CHANGED
@@ -3,6 +3,11 @@
|
|
3
3
|
Mount Angular components in the open source [Cypress.io](https://www.cypress.io/) test runner
|
4
4
|
|
5
5
|
> **Note:** This package is bundled with the `cypress` package and should not need to be installed separately. See the [Angular Component Testing Docs](https://docs.cypress.io/guides/component-testing/angular/overview) for mounting Angular components. Installing and importing `mount` from `@cypress/angular` should only be done for advanced use-cases.
|
6
|
+
|
7
|
+
## Requirements
|
8
|
+
|
9
|
+
- Angular 17.2.0+ (Cypress 13 and under supports Angular 13 - 16)
|
10
|
+
|
6
11
|
## Development
|
7
12
|
|
8
13
|
Run `yarn build` to compile and sync packages to the `cypress` cli package.
|
@@ -3,6 +3,11 @@
|
|
3
3
|
Mount Angular components in the open source [Cypress.io](https://www.cypress.io/) test runner
|
4
4
|
|
5
5
|
> **Note:** This package is bundled with the `cypress` package and should not need to be installed separately. See the [Angular Component Testing Docs](https://docs.cypress.io/guides/component-testing/angular/overview) for mounting Angular components. Installing and importing `mount` from `@cypress/angular` should only be done for advanced use-cases.
|
6
|
+
|
7
|
+
## Requirements
|
8
|
+
|
9
|
+
- Angular 17.2.0+ (Cypress 13 and under supports Angular 13 - 16)
|
10
|
+
|
6
11
|
## Development
|
7
12
|
|
8
13
|
Run `yarn build` to compile and sync packages to the `cypress` cli package.
|
@@ -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
|
|