cypress 10.3.0 → 10.5.0
Sign up to get free protection for your applications and to get access to all the features.
- package/angular/CHANGELOG.md +55 -0
- package/angular/README.md +154 -0
- package/angular/dist/index.d.ts +1 -0
- package/angular/dist/index.js +263 -0
- package/angular/dist/mount.d.ts +111 -0
- package/angular/package.json +70 -0
- package/lib/exec/open.js +7 -2
- package/lib/exec/spawn.js +7 -2
- package/mount-utils/CHANGELOG.md +7 -1
- package/mount-utils/README.md +7 -0
- package/mount-utils/dist/index.js +8 -1
- package/mount-utils/package.json +1 -0
- package/package.json +26 -10
- package/react/CHANGELOG.md +13 -19
- package/react/README.md +28 -323
- package/react/dist/createMount.d.ts +28 -0
- package/react/dist/cypress-react.cjs.js +643 -99
- package/react/dist/cypress-react.esm-bundler.js +640 -100
- package/react/dist/getDisplayName.d.ts +1 -1
- package/react/dist/index.d.ts +2 -0
- package/react/dist/mount.d.ts +5 -141
- package/react/dist/types.d.ts +44 -0
- package/react/package.json +3 -5
- package/react18/CHANGELOG.md +6 -0
- package/react18/dist/cypress-react.cjs.js +633 -0
- package/react18/dist/cypress-react.esm-bundler.js +605 -0
- package/react18/dist/index.d.ts +5 -0
- package/react18/package.json +59 -0
- package/types/cypress.d.ts +24 -3
- package/types/index.d.ts +1 -1
- package/types/{net-stubbing.ts → net-stubbing.d.ts} +0 -0
- package/vue/CHANGELOG.md +16 -17
- package/vue/README.md +17 -607
- package/vue/dist/@vue/test-utils/baseWrapper.d.ts +63 -0
- package/vue/dist/@vue/test-utils/components/RouterLinkStub.d.ts +21 -0
- package/vue/dist/@vue/test-utils/config.d.ts +30 -0
- package/vue/dist/@vue/test-utils/constants/dom-events.d.ts +900 -0
- package/vue/dist/@vue/test-utils/createDomEvent.d.ts +9 -0
- package/vue/dist/@vue/test-utils/domWrapper.d.ts +18 -0
- package/vue/dist/@vue/test-utils/emit.d.ts +5 -0
- package/vue/dist/@vue/test-utils/errorWrapper.d.ts +1 -0
- package/vue/dist/@vue/test-utils/index.d.ts +11 -0
- package/vue/dist/@vue/test-utils/interfaces/wrapperLike.d.ts +56 -0
- package/vue/dist/@vue/test-utils/mount.d.ts +35 -0
- package/vue/dist/@vue/test-utils/stubs.d.ts +22 -0
- package/vue/dist/@vue/test-utils/types.d.ts +125 -0
- package/vue/dist/@vue/test-utils/utils/autoUnmount.d.ts +5 -0
- package/vue/dist/@vue/test-utils/utils/compileSlots.d.ts +2 -0
- package/vue/dist/@vue/test-utils/utils/componentName.d.ts +4 -0
- package/vue/dist/@vue/test-utils/utils/find.d.ts +10 -0
- package/vue/dist/@vue/test-utils/utils/flushPromises.d.ts +1 -0
- package/vue/dist/@vue/test-utils/utils/getRootNodes.d.ts +2 -0
- package/vue/dist/@vue/test-utils/utils/isElement.d.ts +1 -0
- package/vue/dist/@vue/test-utils/utils/isElementVisible.d.ts +6 -0
- package/vue/dist/@vue/test-utils/utils/matchName.d.ts +1 -0
- package/vue/dist/@vue/test-utils/utils/stringifyNode.d.ts +1 -0
- package/vue/dist/@vue/test-utils/utils/vueCompatSupport.d.ts +8 -0
- package/vue/dist/@vue/test-utils/utils/vueShared.d.ts +3 -0
- package/vue/dist/@vue/test-utils/utils.d.ts +13 -0
- package/vue/dist/@vue/test-utils/vueWrapper.d.ts +35 -0
- package/vue/dist/@vue/test-utils/wrapperFactory.d.ts +14 -0
- package/vue/dist/cypress-vue.cjs.js +5585 -5211
- package/vue/dist/cypress-vue.esm-bundler.js +5586 -5213
- package/vue/dist/index.d.ts +35 -3
- package/vue/package.json +11 -8
- package/vue2/CHANGELOG.md +7 -0
- package/vue2/README.md +11 -627
- package/vue2/dist/cypress-vue2.browser.js +267 -261
- package/vue2/dist/cypress-vue2.cjs.js +266 -260
- package/vue2/dist/cypress-vue2.esm-bundler.js +264 -258
- package/vue2/package.json +1 -1
- package/react/dist/cypress-react.browser.js +0 -497
package/vue/dist/index.d.ts
CHANGED
@@ -1,7 +1,40 @@
|
|
1
1
|
/// <reference types="cypress" />
|
2
|
-
import { ComponentPublicInstance, VNodeProps, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes, ExtractDefaultPropTypes, DefineComponent, FunctionalComponent, ComputedOptions, MethodOptions, ComponentOptionsMixin, EmitsOptions, ComponentOptionsWithObjectProps, ComponentPropsOptions, ComponentOptionsWithArrayProps, ComponentOptionsWithoutProps } from 'vue';
|
3
|
-
import { MountingOptions, VueWrapper } from '
|
2
|
+
import type { ComponentPublicInstance, VNodeProps, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes, ExtractDefaultPropTypes, DefineComponent, FunctionalComponent, ComputedOptions, MethodOptions, ComponentOptionsMixin, EmitsOptions, ComponentOptionsWithObjectProps, ComponentPropsOptions, ComponentOptionsWithArrayProps, ComponentOptionsWithoutProps } from 'vue';
|
3
|
+
import type { MountingOptions, VueWrapper } from './@vue/test-utils';
|
4
4
|
import { StyleOptions } from '@cypress/mount-utils';
|
5
|
+
import * as _VueTestUtils from './@vue/test-utils';
|
6
|
+
declare const VueTestUtils: {
|
7
|
+
enableAutoUnmount: typeof _VueTestUtils.enableAutoUnmount;
|
8
|
+
disableAutoUnmount: typeof _VueTestUtils.disableAutoUnmount;
|
9
|
+
RouterLinkStub: DefineComponent<{
|
10
|
+
to: {
|
11
|
+
type: (ObjectConstructor | StringConstructor)[];
|
12
|
+
required: true;
|
13
|
+
};
|
14
|
+
custom: {
|
15
|
+
type: BooleanConstructor;
|
16
|
+
default: boolean;
|
17
|
+
};
|
18
|
+
}, unknown, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, Record<string, any>, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<{
|
19
|
+
to: {
|
20
|
+
type: (ObjectConstructor | StringConstructor)[];
|
21
|
+
required: true;
|
22
|
+
};
|
23
|
+
custom: {
|
24
|
+
type: BooleanConstructor;
|
25
|
+
default: boolean;
|
26
|
+
};
|
27
|
+
}>>, {
|
28
|
+
custom: boolean;
|
29
|
+
}>;
|
30
|
+
VueWrapper: typeof VueWrapper;
|
31
|
+
DOMWrapper: typeof _VueTestUtils.DOMWrapper;
|
32
|
+
BaseWrapper: typeof _VueTestUtils.BaseWrapper;
|
33
|
+
config: import("./@vue/test-utils/config").GlobalConfigOptions;
|
34
|
+
flushPromises: typeof _VueTestUtils.flushPromises;
|
35
|
+
createWrapperError: typeof _VueTestUtils.createWrapperError;
|
36
|
+
};
|
37
|
+
export { VueTestUtils };
|
5
38
|
declare type GlobalMountOptions = Required<MountingOptions<any>>['global'];
|
6
39
|
declare global {
|
7
40
|
namespace Cypress {
|
@@ -53,4 +86,3 @@ export declare function mount<PropsOptions extends Readonly<ComponentPropsOption
|
|
53
86
|
* beforeEach(mountVue(component, options))
|
54
87
|
*/
|
55
88
|
export declare function mountCallback(component: any, options?: any): () => Cypress.Chainable;
|
56
|
-
export {};
|
package/vue/package.json
CHANGED
@@ -8,30 +8,29 @@
|
|
8
8
|
"cy:open": "node ../../scripts/cypress.js open --component --project ${PWD}",
|
9
9
|
"cy:run": "node ../../scripts/cypress.js run --component --project ${PWD}",
|
10
10
|
"build": "rimraf dist && rollup -c rollup.config.js",
|
11
|
-
"postbuild": "node ../../scripts/sync-exported-npm-with-cli.js",
|
12
|
-
"typecheck": "vue-tsc --noEmit",
|
11
|
+
"postbuild": "node --require @packages/ts/register ./inline-types.ts && node ../../scripts/sync-exported-npm-with-cli.js",
|
12
|
+
"typecheck": "yarn tsd && vue-tsc --noEmit",
|
13
13
|
"test": "yarn cy:run",
|
14
|
+
"tsd": "yarn build && yarn tsc -p test-tsd/tsconfig.tsd.json",
|
14
15
|
"watch": "yarn build --watch --watch.exclude ./dist/**/*"
|
15
16
|
},
|
16
|
-
"dependencies": {
|
17
|
-
"@vue/test-utils": "2.0.0-rc.19"
|
18
|
-
},
|
19
17
|
"devDependencies": {
|
20
|
-
"@cypress/code-coverage": "3.8.1",
|
21
18
|
"@cypress/mount-utils": "0.0.0-development",
|
22
19
|
"@rollup/plugin-commonjs": "^17.1.0",
|
23
20
|
"@rollup/plugin-node-resolve": "^11.1.1",
|
24
21
|
"@vitejs/plugin-vue": "2.3.1",
|
25
22
|
"@vue/compiler-sfc": "3.2.31",
|
23
|
+
"@vue/test-utils": "2.0.2",
|
26
24
|
"axios": "0.21.2",
|
27
25
|
"cypress": "0.0.0-development",
|
28
26
|
"debug": "^4.3.2",
|
27
|
+
"globby": "^11.0.1",
|
29
28
|
"rollup": "^2.38.5",
|
30
29
|
"rollup-plugin-istanbul": "2.0.1",
|
31
30
|
"rollup-plugin-typescript2": "^0.29.0",
|
32
31
|
"tailwindcss": "1.1.4",
|
33
32
|
"typescript": "^4.2.3",
|
34
|
-
"vite": "
|
33
|
+
"vite": "3.0.3",
|
35
34
|
"vue": "3.2.31",
|
36
35
|
"vue-i18n": "9.0.0-rc.6",
|
37
36
|
"vue-router": "^4.0.0",
|
@@ -50,7 +49,7 @@
|
|
50
49
|
"engines": {
|
51
50
|
"node": ">=8"
|
52
51
|
},
|
53
|
-
"types": "dist",
|
52
|
+
"types": "dist/index.d.ts",
|
54
53
|
"license": "MIT",
|
55
54
|
"repository": {
|
56
55
|
"type": "git",
|
@@ -71,6 +70,10 @@
|
|
71
70
|
{
|
72
71
|
"name": "Amir Rustamzadeh",
|
73
72
|
"social": "@amirrustam"
|
73
|
+
},
|
74
|
+
{
|
75
|
+
"name": "Lachlan Miller",
|
76
|
+
"social": "@Lachlan19900"
|
74
77
|
}
|
75
78
|
],
|
76
79
|
"module": "dist/cypress-vue.esm-bundler.js",
|
package/vue2/CHANGELOG.md
CHANGED
@@ -1,3 +1,10 @@
|
|
1
|
+
# [@cypress/vue2-v1.0.2](https://github.com/cypress-io/cypress/compare/@cypress/vue2-v1.0.1...@cypress/vue2-v1.0.2) (2022-08-11)
|
2
|
+
|
3
|
+
|
4
|
+
### Bug Fixes
|
5
|
+
|
6
|
+
* remove CT side effects from mount when e2e testing ([#22633](https://github.com/cypress-io/cypress/issues/22633)) ([a9476ec](https://github.com/cypress-io/cypress/commit/a9476ecb3d43f628b689e060294a1952937cb1a7))
|
7
|
+
|
1
8
|
# [@cypress/vue2-v1.0.1](https://github.com/cypress-io/cypress/compare/@cypress/vue2-v1.0.0...@cypress/vue2-v1.0.1) (2022-06-13)
|
2
9
|
|
3
10
|
|