cypress 10.2.0 → 10.4.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.
Files changed (64) hide show
  1. package/lib/exec/open.js +7 -2
  2. package/lib/exec/spawn.js +7 -2
  3. package/mount-utils/CHANGELOG.md +0 -1
  4. package/mount-utils/README.md +7 -0
  5. package/mount-utils/dist/index.js +8 -1
  6. package/mount-utils/package.json +1 -0
  7. package/package.json +20 -10
  8. package/react/CHANGELOG.md +0 -19
  9. package/react/README.md +28 -323
  10. package/react/dist/createMount.d.ts +30 -0
  11. package/react/dist/cypress-react.cjs.js +76 -80
  12. package/react/dist/cypress-react.esm-bundler.js +68 -76
  13. package/react/dist/getDisplayName.d.ts +1 -1
  14. package/react/dist/index.d.ts +2 -0
  15. package/react/dist/mount.d.ts +5 -141
  16. package/react/dist/types.d.ts +50 -0
  17. package/react/package.json +1 -5
  18. package/react18/dist/cypress-react.cjs.js +422 -0
  19. package/react18/dist/cypress-react.esm-bundler.js +394 -0
  20. package/react18/dist/index.d.ts +5 -0
  21. package/react18/package.json +59 -0
  22. package/types/cypress.d.ts +11 -2
  23. package/types/index.d.ts +1 -1
  24. package/types/{net-stubbing.ts → net-stubbing.d.ts} +0 -0
  25. package/vue/CHANGELOG.md +2 -17
  26. package/vue/README.md +17 -607
  27. package/vue/dist/@vue/test-utils/baseWrapper.d.ts +63 -0
  28. package/vue/dist/@vue/test-utils/components/RouterLinkStub.d.ts +21 -0
  29. package/vue/dist/@vue/test-utils/config.d.ts +30 -0
  30. package/vue/dist/@vue/test-utils/constants/dom-events.d.ts +900 -0
  31. package/vue/dist/@vue/test-utils/createDomEvent.d.ts +9 -0
  32. package/vue/dist/@vue/test-utils/domWrapper.d.ts +18 -0
  33. package/vue/dist/@vue/test-utils/emit.d.ts +5 -0
  34. package/vue/dist/@vue/test-utils/errorWrapper.d.ts +1 -0
  35. package/vue/dist/@vue/test-utils/index.d.ts +11 -0
  36. package/vue/dist/@vue/test-utils/interfaces/wrapperLike.d.ts +56 -0
  37. package/vue/dist/@vue/test-utils/mount.d.ts +35 -0
  38. package/vue/dist/@vue/test-utils/stubs.d.ts +22 -0
  39. package/vue/dist/@vue/test-utils/types.d.ts +125 -0
  40. package/vue/dist/@vue/test-utils/utils/autoUnmount.d.ts +5 -0
  41. package/vue/dist/@vue/test-utils/utils/compileSlots.d.ts +2 -0
  42. package/vue/dist/@vue/test-utils/utils/componentName.d.ts +4 -0
  43. package/vue/dist/@vue/test-utils/utils/find.d.ts +10 -0
  44. package/vue/dist/@vue/test-utils/utils/flushPromises.d.ts +1 -0
  45. package/vue/dist/@vue/test-utils/utils/getRootNodes.d.ts +2 -0
  46. package/vue/dist/@vue/test-utils/utils/isElement.d.ts +1 -0
  47. package/vue/dist/@vue/test-utils/utils/isElementVisible.d.ts +6 -0
  48. package/vue/dist/@vue/test-utils/utils/matchName.d.ts +1 -0
  49. package/vue/dist/@vue/test-utils/utils/stringifyNode.d.ts +1 -0
  50. package/vue/dist/@vue/test-utils/utils/vueCompatSupport.d.ts +8 -0
  51. package/vue/dist/@vue/test-utils/utils/vueShared.d.ts +3 -0
  52. package/vue/dist/@vue/test-utils/utils.d.ts +13 -0
  53. package/vue/dist/@vue/test-utils/vueWrapper.d.ts +35 -0
  54. package/vue/dist/@vue/test-utils/wrapperFactory.d.ts +14 -0
  55. package/vue/dist/cypress-vue.cjs.js +5583 -5209
  56. package/vue/dist/cypress-vue.esm-bundler.js +5584 -5211
  57. package/vue/dist/index.d.ts +35 -3
  58. package/vue/package.json +11 -7
  59. package/vue2/README.md +11 -627
  60. package/vue2/dist/cypress-vue2.browser.js +268 -262
  61. package/vue2/dist/cypress-vue2.cjs.js +267 -261
  62. package/vue2/dist/cypress-vue2.esm-bundler.js +265 -259
  63. package/vue2/package.json +1 -1
  64. package/react/dist/cypress-react.browser.js +0 -497
@@ -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 '@vue/test-utils';
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,14 +8,12 @@
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
18
  "@cypress/code-coverage": "3.8.1",
21
19
  "@cypress/mount-utils": "0.0.0-development",
@@ -23,15 +21,17 @@
23
21
  "@rollup/plugin-node-resolve": "^11.1.1",
24
22
  "@vitejs/plugin-vue": "2.3.1",
25
23
  "@vue/compiler-sfc": "3.2.31",
24
+ "@vue/test-utils": "2.0.2",
26
25
  "axios": "0.21.2",
27
26
  "cypress": "0.0.0-development",
28
27
  "debug": "^4.3.2",
28
+ "globby": "^11.0.1",
29
29
  "rollup": "^2.38.5",
30
30
  "rollup-plugin-istanbul": "2.0.1",
31
31
  "rollup-plugin-typescript2": "^0.29.0",
32
32
  "tailwindcss": "1.1.4",
33
33
  "typescript": "^4.2.3",
34
- "vite": "2.9.5",
34
+ "vite": "3.0.3",
35
35
  "vue": "3.2.31",
36
36
  "vue-i18n": "9.0.0-rc.6",
37
37
  "vue-router": "^4.0.0",
@@ -50,7 +50,7 @@
50
50
  "engines": {
51
51
  "node": ">=8"
52
52
  },
53
- "types": "dist",
53
+ "types": "dist/index.d.ts",
54
54
  "license": "MIT",
55
55
  "repository": {
56
56
  "type": "git",
@@ -71,6 +71,10 @@
71
71
  {
72
72
  "name": "Amir Rustamzadeh",
73
73
  "social": "@amirrustam"
74
+ },
75
+ {
76
+ "name": "Lachlan Miller",
77
+ "social": "@Lachlan19900"
74
78
  }
75
79
  ],
76
80
  "module": "dist/cypress-vue.esm-bundler.js",