cypress 10.3.0 → 10.5.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (72) hide show
  1. package/angular/CHANGELOG.md +55 -0
  2. package/angular/README.md +154 -0
  3. package/angular/dist/index.d.ts +1 -0
  4. package/angular/dist/index.js +263 -0
  5. package/angular/dist/mount.d.ts +111 -0
  6. package/angular/package.json +70 -0
  7. package/lib/exec/open.js +7 -2
  8. package/lib/exec/spawn.js +7 -2
  9. package/mount-utils/CHANGELOG.md +7 -1
  10. package/mount-utils/README.md +7 -0
  11. package/mount-utils/dist/index.js +8 -1
  12. package/mount-utils/package.json +1 -0
  13. package/package.json +26 -10
  14. package/react/CHANGELOG.md +13 -19
  15. package/react/README.md +28 -323
  16. package/react/dist/createMount.d.ts +28 -0
  17. package/react/dist/cypress-react.cjs.js +643 -99
  18. package/react/dist/cypress-react.esm-bundler.js +640 -100
  19. package/react/dist/getDisplayName.d.ts +1 -1
  20. package/react/dist/index.d.ts +2 -0
  21. package/react/dist/mount.d.ts +5 -141
  22. package/react/dist/types.d.ts +44 -0
  23. package/react/package.json +3 -5
  24. package/react18/CHANGELOG.md +6 -0
  25. package/react18/dist/cypress-react.cjs.js +633 -0
  26. package/react18/dist/cypress-react.esm-bundler.js +605 -0
  27. package/react18/dist/index.d.ts +5 -0
  28. package/react18/package.json +59 -0
  29. package/types/cypress.d.ts +24 -3
  30. package/types/index.d.ts +1 -1
  31. package/types/{net-stubbing.ts → net-stubbing.d.ts} +0 -0
  32. package/vue/CHANGELOG.md +16 -17
  33. package/vue/README.md +17 -607
  34. package/vue/dist/@vue/test-utils/baseWrapper.d.ts +63 -0
  35. package/vue/dist/@vue/test-utils/components/RouterLinkStub.d.ts +21 -0
  36. package/vue/dist/@vue/test-utils/config.d.ts +30 -0
  37. package/vue/dist/@vue/test-utils/constants/dom-events.d.ts +900 -0
  38. package/vue/dist/@vue/test-utils/createDomEvent.d.ts +9 -0
  39. package/vue/dist/@vue/test-utils/domWrapper.d.ts +18 -0
  40. package/vue/dist/@vue/test-utils/emit.d.ts +5 -0
  41. package/vue/dist/@vue/test-utils/errorWrapper.d.ts +1 -0
  42. package/vue/dist/@vue/test-utils/index.d.ts +11 -0
  43. package/vue/dist/@vue/test-utils/interfaces/wrapperLike.d.ts +56 -0
  44. package/vue/dist/@vue/test-utils/mount.d.ts +35 -0
  45. package/vue/dist/@vue/test-utils/stubs.d.ts +22 -0
  46. package/vue/dist/@vue/test-utils/types.d.ts +125 -0
  47. package/vue/dist/@vue/test-utils/utils/autoUnmount.d.ts +5 -0
  48. package/vue/dist/@vue/test-utils/utils/compileSlots.d.ts +2 -0
  49. package/vue/dist/@vue/test-utils/utils/componentName.d.ts +4 -0
  50. package/vue/dist/@vue/test-utils/utils/find.d.ts +10 -0
  51. package/vue/dist/@vue/test-utils/utils/flushPromises.d.ts +1 -0
  52. package/vue/dist/@vue/test-utils/utils/getRootNodes.d.ts +2 -0
  53. package/vue/dist/@vue/test-utils/utils/isElement.d.ts +1 -0
  54. package/vue/dist/@vue/test-utils/utils/isElementVisible.d.ts +6 -0
  55. package/vue/dist/@vue/test-utils/utils/matchName.d.ts +1 -0
  56. package/vue/dist/@vue/test-utils/utils/stringifyNode.d.ts +1 -0
  57. package/vue/dist/@vue/test-utils/utils/vueCompatSupport.d.ts +8 -0
  58. package/vue/dist/@vue/test-utils/utils/vueShared.d.ts +3 -0
  59. package/vue/dist/@vue/test-utils/utils.d.ts +13 -0
  60. package/vue/dist/@vue/test-utils/vueWrapper.d.ts +35 -0
  61. package/vue/dist/@vue/test-utils/wrapperFactory.d.ts +14 -0
  62. package/vue/dist/cypress-vue.cjs.js +5585 -5211
  63. package/vue/dist/cypress-vue.esm-bundler.js +5586 -5213
  64. package/vue/dist/index.d.ts +35 -3
  65. package/vue/package.json +11 -8
  66. package/vue2/CHANGELOG.md +7 -0
  67. package/vue2/README.md +11 -627
  68. package/vue2/dist/cypress-vue2.browser.js +267 -261
  69. package/vue2/dist/cypress-vue2.cjs.js +266 -260
  70. package/vue2/dist/cypress-vue2.esm-bundler.js +264 -258
  71. package/vue2/package.json +1 -1
  72. 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,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": "2.9.5",
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