cypress 9.6.0 → 10.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/index.mjs +15 -0
- package/lib/cli.js +72 -23
- package/lib/errors.js +16 -1
- package/lib/exec/open.js +45 -10
- package/lib/exec/run.js +17 -10
- package/lib/exec/shared.js +30 -9
- package/lib/exec/spawn.js +4 -0
- package/lib/exec/xvfb.js +1 -0
- package/lib/util.js +10 -3
- package/mount-utils/CHANGELOG.md +20 -0
- package/mount-utils/README.md +14 -0
- package/mount-utils/dist/index.d.ts +54 -0
- package/mount-utils/dist/index.js +134 -0
- package/mount-utils/package.json +31 -0
- package/package.json +39 -4
- package/react/CHANGELOG.md +373 -0
- package/react/README.md +414 -0
- package/react/dist/cypress-react.browser.js +497 -0
- package/react/dist/cypress-react.cjs.js +495 -0
- package/react/dist/cypress-react.esm-bundler.js +467 -0
- package/react/dist/getDisplayName.d.ts +8 -0
- package/react/dist/index.d.ts +2 -0
- package/react/dist/mount.d.ts +143 -0
- package/react/dist/mountHook.d.ts +11 -0
- package/react/package.json +105 -0
- package/types/bluebird/index.d.ts +18 -4
- package/types/cypress-eventemitter.d.ts +1 -1
- package/types/cypress-global-vars.d.ts +2 -2
- package/types/cypress-npm-api.d.ts +4 -10
- package/types/cypress.d.ts +180 -120
- package/types/minimatch/index.d.ts +15 -5
- package/vue/CHANGELOG.md +380 -0
- package/vue/README.md +678 -0
- package/vue/dist/cypress-vue.cjs.js +13535 -0
- package/vue/dist/cypress-vue.esm-bundler.js +13511 -0
- package/vue/dist/index.d.ts +56 -0
- package/vue/package.json +86 -0
- package/vue2/CHANGELOG.md +5 -0
- package/vue2/README.md +693 -0
- package/vue2/dist/cypress-vue2.browser.js +20191 -0
- package/vue2/dist/cypress-vue2.cjs.js +20188 -0
- package/vue2/dist/cypress-vue2.esm-bundler.js +20179 -0
- package/vue2/dist/index.d.ts +171 -0
- package/vue2/package.json +59 -0
@@ -0,0 +1,134 @@
|
|
1
|
+
export const ROOT_SELECTOR = '[data-cy-root]';
|
2
|
+
export const getContainerEl = () => {
|
3
|
+
const el = document.querySelector(ROOT_SELECTOR);
|
4
|
+
if (el) {
|
5
|
+
return el;
|
6
|
+
}
|
7
|
+
throw Error(`No element found that matches selector ${ROOT_SELECTOR}. Please use the mount utils to mount it properly`);
|
8
|
+
};
|
9
|
+
/**
|
10
|
+
* Remove any style or extra link elements from the iframe placeholder
|
11
|
+
* left from any previous test
|
12
|
+
*
|
13
|
+
*/
|
14
|
+
export function cleanupStyles() {
|
15
|
+
const styles = document.body.querySelectorAll('[data-cy=injected-style-tag]');
|
16
|
+
styles.forEach((styleElement) => {
|
17
|
+
if (styleElement.parentElement) {
|
18
|
+
styleElement.parentElement.removeChild(styleElement);
|
19
|
+
}
|
20
|
+
});
|
21
|
+
const links = document.body.querySelectorAll('[data-cy=injected-stylesheet]');
|
22
|
+
links.forEach((link) => {
|
23
|
+
if (link.parentElement) {
|
24
|
+
link.parentElement.removeChild(link);
|
25
|
+
}
|
26
|
+
});
|
27
|
+
}
|
28
|
+
/**
|
29
|
+
* Insert links to external style resources.
|
30
|
+
*/
|
31
|
+
function insertStylesheets(stylesheets, document, el) {
|
32
|
+
stylesheets.forEach((href) => {
|
33
|
+
const link = document.createElement('link');
|
34
|
+
link.type = 'text/css';
|
35
|
+
link.rel = 'stylesheet';
|
36
|
+
link.href = href;
|
37
|
+
link.dataset.cy = 'injected-stylesheet';
|
38
|
+
document.body.insertBefore(link, el);
|
39
|
+
});
|
40
|
+
}
|
41
|
+
/**
|
42
|
+
* Inserts a single stylesheet element
|
43
|
+
*/
|
44
|
+
function insertStyles(styles, document, el) {
|
45
|
+
styles.forEach((style) => {
|
46
|
+
const styleElement = document.createElement('style');
|
47
|
+
styleElement.dataset.cy = 'injected-style-tag';
|
48
|
+
styleElement.appendChild(document.createTextNode(style));
|
49
|
+
document.body.insertBefore(styleElement, el);
|
50
|
+
});
|
51
|
+
}
|
52
|
+
function insertSingleCssFile(cssFilename, document, el, log) {
|
53
|
+
return cy.readFile(cssFilename, { log }).then((css) => {
|
54
|
+
const style = document.createElement('style');
|
55
|
+
style.appendChild(document.createTextNode(css));
|
56
|
+
document.body.insertBefore(style, el);
|
57
|
+
});
|
58
|
+
}
|
59
|
+
/**
|
60
|
+
* Reads the given CSS file from local file system
|
61
|
+
* and adds the loaded style text as an element.
|
62
|
+
*/
|
63
|
+
function insertLocalCssFiles(cssFilenames, document, el, log) {
|
64
|
+
return Cypress.Promise.mapSeries(cssFilenames, (cssFilename) => {
|
65
|
+
return insertSingleCssFile(cssFilename, document, el, log);
|
66
|
+
});
|
67
|
+
}
|
68
|
+
/**
|
69
|
+
* Injects custom style text or CSS file or 3rd party style resources
|
70
|
+
* into the given document.
|
71
|
+
*/
|
72
|
+
export const injectStylesBeforeElement = (options, document, el) => {
|
73
|
+
if (!el)
|
74
|
+
return;
|
75
|
+
// first insert all stylesheets as Link elements
|
76
|
+
let stylesheets = [];
|
77
|
+
if (typeof options.stylesheet === 'string') {
|
78
|
+
stylesheets.push(options.stylesheet);
|
79
|
+
}
|
80
|
+
else if (Array.isArray(options.stylesheet)) {
|
81
|
+
stylesheets = stylesheets.concat(options.stylesheet);
|
82
|
+
}
|
83
|
+
if (typeof options.stylesheets === 'string') {
|
84
|
+
options.stylesheets = [options.stylesheets];
|
85
|
+
}
|
86
|
+
if (options.stylesheets) {
|
87
|
+
stylesheets = stylesheets.concat(options.stylesheets);
|
88
|
+
}
|
89
|
+
insertStylesheets(stylesheets, document, el);
|
90
|
+
// insert any styles as <style>...</style> elements
|
91
|
+
let styles = [];
|
92
|
+
if (typeof options.style === 'string') {
|
93
|
+
styles.push(options.style);
|
94
|
+
}
|
95
|
+
else if (Array.isArray(options.style)) {
|
96
|
+
styles = styles.concat(options.style);
|
97
|
+
}
|
98
|
+
if (typeof options.styles === 'string') {
|
99
|
+
styles.push(options.styles);
|
100
|
+
}
|
101
|
+
else if (Array.isArray(options.styles)) {
|
102
|
+
styles = styles.concat(options.styles);
|
103
|
+
}
|
104
|
+
insertStyles(styles, document, el);
|
105
|
+
// now load any css files by path and add their content
|
106
|
+
// as <style>...</style> elements
|
107
|
+
let cssFiles = [];
|
108
|
+
if (typeof options.cssFile === 'string') {
|
109
|
+
cssFiles.push(options.cssFile);
|
110
|
+
}
|
111
|
+
else if (Array.isArray(options.cssFile)) {
|
112
|
+
cssFiles = cssFiles.concat(options.cssFile);
|
113
|
+
}
|
114
|
+
if (typeof options.cssFiles === 'string') {
|
115
|
+
cssFiles.push(options.cssFiles);
|
116
|
+
}
|
117
|
+
else if (Array.isArray(options.cssFiles)) {
|
118
|
+
cssFiles = cssFiles.concat(options.cssFiles);
|
119
|
+
}
|
120
|
+
return insertLocalCssFiles(cssFiles, document, el, options.log);
|
121
|
+
};
|
122
|
+
export function setupHooks(optionalCallback) {
|
123
|
+
// When running component specs, we cannot allow "cy.visit"
|
124
|
+
// because it will wipe out our preparation work, and does not make much sense
|
125
|
+
// thus we overwrite "cy.visit" to throw an error
|
126
|
+
Cypress.Commands.overwrite('visit', () => {
|
127
|
+
throw new Error('cy.visit from a component spec is not allowed');
|
128
|
+
});
|
129
|
+
// @ts-ignore
|
130
|
+
Cypress.on('test:before:run', () => {
|
131
|
+
optionalCallback === null || optionalCallback === void 0 ? void 0 : optionalCallback();
|
132
|
+
cleanupStyles();
|
133
|
+
});
|
134
|
+
}
|
@@ -0,0 +1,31 @@
|
|
1
|
+
{
|
2
|
+
"name": "@cypress/mount-utils",
|
3
|
+
"version": "0.0.0-development",
|
4
|
+
"description": "Shared utilities for the various component testing adapters",
|
5
|
+
"private": true,
|
6
|
+
"main": "dist/index.js",
|
7
|
+
"scripts": {
|
8
|
+
"build": "tsc || echo 'built, with type errors'",
|
9
|
+
"postbuild": "node ../../scripts/sync-exported-npm-with-cli.js",
|
10
|
+
"build-prod": "yarn build",
|
11
|
+
"check-ts": "tsc --noEmit",
|
12
|
+
"watch": "tsc -w"
|
13
|
+
},
|
14
|
+
"dependencies": {},
|
15
|
+
"devDependencies": {
|
16
|
+
"typescript": "^4.2.3"
|
17
|
+
},
|
18
|
+
"files": [
|
19
|
+
"dist"
|
20
|
+
],
|
21
|
+
"license": "MIT",
|
22
|
+
"repository": {
|
23
|
+
"type": "git",
|
24
|
+
"url": "https://github.com/cypress-io/cypress.git"
|
25
|
+
},
|
26
|
+
"homepage": "https://github.com/cypress-io/cypress/tree/master/npm/mount-utils#readme",
|
27
|
+
"bugs": "https://github.com/cypress-io/cypress/issues/new?template=1-bug-report.md",
|
28
|
+
"publishConfig": {
|
29
|
+
"access": "public"
|
30
|
+
}
|
31
|
+
}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "cypress",
|
3
|
-
"version": "
|
3
|
+
"version": "10.0.0",
|
4
4
|
"main": "index.js",
|
5
5
|
"scripts": {
|
6
6
|
"postinstall": "node index.js --exec install",
|
@@ -54,8 +54,13 @@
|
|
54
54
|
"bin",
|
55
55
|
"lib",
|
56
56
|
"index.js",
|
57
|
+
"index.mjs",
|
57
58
|
"types/**/*.d.ts",
|
58
|
-
"types/net-stubbing.ts"
|
59
|
+
"types/net-stubbing.ts",
|
60
|
+
"mount-utils",
|
61
|
+
"vue",
|
62
|
+
"react",
|
63
|
+
"vue2"
|
59
64
|
],
|
60
65
|
"bin": {
|
61
66
|
"cypress": "bin/cypress"
|
@@ -64,10 +69,40 @@
|
|
64
69
|
"node": ">=12.0.0"
|
65
70
|
},
|
66
71
|
"types": "types",
|
72
|
+
"exports": {
|
73
|
+
".": {
|
74
|
+
"import": "./index.mjs",
|
75
|
+
"require": "./index.js"
|
76
|
+
},
|
77
|
+
"./vue": {
|
78
|
+
"import": "./vue/dist/cypress-vue.esm-bundler.js",
|
79
|
+
"require": "./vue/dist/cypress-vue.cjs.js"
|
80
|
+
},
|
81
|
+
"./vue2": {
|
82
|
+
"import": "./vue2/dist/cypress-vue2.esm-bundler.js",
|
83
|
+
"require": "./vue2/dist/cypress-vue2.cjs.js"
|
84
|
+
},
|
85
|
+
"./package.json": {
|
86
|
+
"import": "./package.json",
|
87
|
+
"require": "./package.json"
|
88
|
+
},
|
89
|
+
"./react": {
|
90
|
+
"import": "./react/dist/cypress-react.esm-bundler.js",
|
91
|
+
"require": "./react/dist/cypress-react.cjs.js"
|
92
|
+
},
|
93
|
+
"./mount-utils": {
|
94
|
+
"require": "./mount-utils/dist/index.js"
|
95
|
+
}
|
96
|
+
},
|
97
|
+
"workspaces": {
|
98
|
+
"nohoist": [
|
99
|
+
"@types/*"
|
100
|
+
]
|
101
|
+
},
|
67
102
|
"buildInfo": {
|
68
103
|
"commitBranch": "develop",
|
69
|
-
"commitSha": "
|
70
|
-
"commitDate": "2022-
|
104
|
+
"commitSha": "e0e5a60ef69a0d73fabf5e84334b5e097be366a6",
|
105
|
+
"commitDate": "2022-06-01T13:26:18.000Z",
|
71
106
|
"stable": true
|
72
107
|
},
|
73
108
|
"description": "Cypress.io end to end testing tool",
|
@@ -0,0 +1,373 @@
|
|
1
|
+
# [@cypress/react-v5.12.5](https://github.com/cypress-io/cypress/compare/@cypress/react-v5.12.4...@cypress/react-v5.12.5) (2022-05-17)
|
2
|
+
|
3
|
+
|
4
|
+
### Bug Fixes
|
5
|
+
|
6
|
+
* add support for Next.js v12.1.6 ([#21516](https://github.com/cypress-io/cypress/issues/21516)) ([72ed33c](https://github.com/cypress-io/cypress/commit/72ed33c4eaa4823366fb47f212f0c5e609fa2cf0))
|
7
|
+
|
8
|
+
# [@cypress/react-v5.12.4](https://github.com/cypress-io/cypress/compare/@cypress/react-v5.12.3...@cypress/react-v5.12.4) (2022-03-03)
|
9
|
+
|
10
|
+
|
11
|
+
### Bug Fixes
|
12
|
+
|
13
|
+
* avoid nextjs unsafeCache and watchOptions ([#20440](https://github.com/cypress-io/cypress/issues/20440)) ([9f60901](https://github.com/cypress-io/cypress/commit/9f6090170b0675d25b26b98cd0f987a5e395ab78))
|
14
|
+
|
15
|
+
# [@cypress/react-v5.12.3](https://github.com/cypress-io/cypress/compare/@cypress/react-v5.12.2...@cypress/react-v5.12.3) (2022-02-10)
|
16
|
+
|
17
|
+
|
18
|
+
### Bug Fixes
|
19
|
+
|
20
|
+
* set correct default when using react-scripts plugin ([#20141](https://github.com/cypress-io/cypress/issues/20141)) ([9b967e0](https://github.com/cypress-io/cypress/commit/9b967e06f5df1e8ae2c5b13d5c7f7170b069f5bc))
|
21
|
+
|
22
|
+
# [@cypress/react-v5.12.2](https://github.com/cypress-io/cypress/compare/@cypress/react-v5.12.1...@cypress/react-v5.12.2) (2022-02-08)
|
23
|
+
|
24
|
+
|
25
|
+
### Bug Fixes
|
26
|
+
|
27
|
+
* remove nullish coalescing in js files to support node 12 ([#20094](https://github.com/cypress-io/cypress/issues/20094)) ([dd11945](https://github.com/cypress-io/cypress/commit/dd11945f5330c14e1540133187415f341794d6f6))
|
28
|
+
|
29
|
+
# [@cypress/react-v5.12.1](https://github.com/cypress-io/cypress/compare/@cypress/react-v5.12.0...@cypress/react-v5.12.1) (2022-01-10)
|
30
|
+
|
31
|
+
|
32
|
+
### Bug Fixes
|
33
|
+
|
34
|
+
* check resolvedNodePath for Next.js 12 guard ([#19604](https://github.com/cypress-io/cypress/issues/19604)) ([6304fd7](https://github.com/cypress-io/cypress/commit/6304fd7548a0a3fee90fc8a9ba449ab81e7a7a0c))
|
35
|
+
|
36
|
+
# [@cypress/react-v5.12.0](https://github.com/cypress-io/cypress/compare/@cypress/react-v5.11.0...@cypress/react-v5.12.0) (2021-12-21)
|
37
|
+
|
38
|
+
|
39
|
+
### Features
|
40
|
+
|
41
|
+
* support create-react-app v5 ([#19434](https://github.com/cypress-io/cypress/issues/19434)) ([415a7b1](https://github.com/cypress-io/cypress/commit/415a7b149aaac37ae605dc1a11007bad29187dc5))
|
42
|
+
|
43
|
+
# [@cypress/react-v5.11.0](https://github.com/cypress-io/cypress/compare/@cypress/react-v5.10.3...@cypress/react-v5.11.0) (2021-12-16)
|
44
|
+
|
45
|
+
|
46
|
+
### Bug Fixes
|
47
|
+
|
48
|
+
* **react:** link to rerender example ([#19020](https://github.com/cypress-io/cypress/issues/19020)) ([2a471d6](https://github.com/cypress-io/cypress/commit/2a471d633a7cf5bd94cfa7d876ddb27cc32626d1))
|
49
|
+
|
50
|
+
|
51
|
+
### Features
|
52
|
+
|
53
|
+
* use hoisted yarn install in binary build ([#17285](https://github.com/cypress-io/cypress/issues/17285)) ([e4f5b10](https://github.com/cypress-io/cypress/commit/e4f5b106d49d6ac0857c5fdac886f83b99558c88))
|
54
|
+
|
55
|
+
# [@cypress/react-v5.10.3](https://github.com/cypress-io/cypress/compare/@cypress/react-v5.10.2...@cypress/react-v5.10.3) (2021-11-01)
|
56
|
+
|
57
|
+
|
58
|
+
### Bug Fixes
|
59
|
+
|
60
|
+
* **@cypress/react:** throw if using Next.js swc-loader without nodeVersion=system ([#18686](https://github.com/cypress-io/cypress/issues/18686)) ([d274a5b](https://github.com/cypress-io/cypress/commit/d274a5b5d92323cb6a9c9d0af3e41bf40e679ac1))
|
61
|
+
|
62
|
+
# [@cypress/react-v5.10.2](https://github.com/cypress-io/cypress/compare/@cypress/react-v5.10.1...@cypress/react-v5.10.2) (2021-10-29)
|
63
|
+
|
64
|
+
|
65
|
+
### Bug Fixes
|
66
|
+
|
67
|
+
* Next.JS 12 components testing failing with ` TypeError: Cannot read property 'traceChild' of undefined` ([#18648](https://github.com/cypress-io/cypress/issues/18648)) ([cb0cbdf](https://github.com/cypress-io/cypress/commit/cb0cbdf4c35da09a7dedcc4563a242cb4748e994))
|
68
|
+
* remove outdated registry link ([#18710](https://github.com/cypress-io/cypress/issues/18710)) ([e2a869d](https://github.com/cypress-io/cypress/commit/e2a869d2a984abb6703aec966dd9124ee693b8c1))
|
69
|
+
* **cypress/react:** disable react-refresh for craco setups ([#18517](https://github.com/cypress-io/cypress/issues/18517)) ([ea10795](https://github.com/cypress-io/cypress/commit/ea1079559473fc672b5e0e188b5b54bf8ebe2f98))
|
70
|
+
|
71
|
+
# [@cypress/react-v5.10.1](https://github.com/cypress-io/cypress/compare/@cypress/react-v5.10.0...@cypress/react-v5.10.1) (2021-10-04)
|
72
|
+
|
73
|
+
|
74
|
+
### Bug Fixes
|
75
|
+
|
76
|
+
* configure proper pages directory for next application ([#18009](https://github.com/cypress-io/cypress/issues/18009)) ([70c7c36](https://github.com/cypress-io/cypress/commit/70c7c3678180d5408c144fa37f94ba5f5f8ceeb8))
|
77
|
+
* next trace error ([#18189](https://github.com/cypress-io/cypress/issues/18189)) ([db6f909](https://github.com/cypress-io/cypress/commit/db6f9096bd6668db1937d0e38d3928866f6cd5df))
|
78
|
+
|
79
|
+
# [@cypress/react-v5.10.0](https://github.com/cypress-io/cypress/compare/@cypress/react-v5.9.4...@cypress/react-v5.10.0) (2021-09-10)
|
80
|
+
|
81
|
+
|
82
|
+
### Features
|
83
|
+
|
84
|
+
* allow usage of @react/plugins with cypress.config.js ([#17738](https://github.com/cypress-io/cypress/issues/17738)) ([da4b1e0](https://github.com/cypress-io/cypress/commit/da4b1e06ce33945aabddda0e6e175dc0e1b488a5))
|
85
|
+
|
86
|
+
# [@cypress/react-v5.9.4](https://github.com/cypress-io/cypress/compare/@cypress/react-v5.9.3...@cypress/react-v5.9.4) (2021-08-10)
|
87
|
+
|
88
|
+
|
89
|
+
### Bug Fixes
|
90
|
+
|
91
|
+
* do not throw when alt path is found in next ([#17658](https://github.com/cypress-io/cypress/issues/17658)) ([ee7e203](https://github.com/cypress-io/cypress/commit/ee7e203fa059efeac45c7a18526e563643e76d77)), closes [#17476](https://github.com/cypress-io/cypress/issues/17476)
|
92
|
+
|
93
|
+
# [@cypress/react-v5.9.3](https://github.com/cypress-io/cypress/compare/@cypress/react-v5.9.2...@cypress/react-v5.9.3) (2021-08-03)
|
94
|
+
|
95
|
+
|
96
|
+
### Bug Fixes
|
97
|
+
|
98
|
+
* plugin for next 11.0.2 moved webpack-config ([#17529](https://github.com/cypress-io/cypress/issues/17529)) ([130c086](https://github.com/cypress-io/cypress/commit/130c0864e786ae5172f2c70fdc86664dcaf93083)), closes [#17519](https://github.com/cypress-io/cypress/issues/17519) [#17476](https://github.com/cypress-io/cypress/issues/17476)
|
99
|
+
|
100
|
+
# [@cypress/react-v5.9.2](https://github.com/cypress-io/cypress/compare/@cypress/react-v5.9.1...@cypress/react-v5.9.2) (2021-07-20)
|
101
|
+
|
102
|
+
|
103
|
+
### Bug Fixes
|
104
|
+
|
105
|
+
* improve React `mountHook` type ([#17241](https://github.com/cypress-io/cypress/issues/17241)) ([e40969a](https://github.com/cypress-io/cypress/commit/e40969abe39424585fd2075b17e4e7d189f53c3a))
|
106
|
+
|
107
|
+
# [@cypress/react-v5.9.1](https://github.com/cypress-io/cypress/compare/@cypress/react-v5.9.0...@cypress/react-v5.9.1) (2021-06-04)
|
108
|
+
|
109
|
+
|
110
|
+
### Bug Fixes
|
111
|
+
|
112
|
+
* **cypress/react:** add default webpack config path ([#16813](https://github.com/cypress-io/cypress/issues/16813)) ([0348170](https://github.com/cypress-io/cypress/commit/03481703c997088a3e7ef5ed3b55d9fee01821a0))
|
113
|
+
* **npm/react:** webpack config sample bug ([#16737](https://github.com/cypress-io/cypress/issues/16737)) ([98fe58c](https://github.com/cypress-io/cypress/commit/98fe58cce3dd42fc6ca4616a9ed3c9da7b33794c))
|
114
|
+
|
115
|
+
# [@cypress/react-v5.9.0](https://github.com/cypress-io/cypress/compare/@cypress/react-v5.8.1...@cypress/react-v5.9.0) (2021-05-31)
|
116
|
+
|
117
|
+
|
118
|
+
### Features
|
119
|
+
|
120
|
+
* react-scripts. allow parametrise webpack config path ([#16644](https://github.com/cypress-io/cypress/issues/16644)) ([c618d30](https://github.com/cypress-io/cypress/commit/c618d30f3df99394df5c0b81ea3817caf0a7eaf4))
|
121
|
+
|
122
|
+
# [@cypress/react-v5.8.1](https://github.com/cypress-io/cypress/compare/@cypress/react-v5.8.0...@cypress/react-v5.8.1) (2021-05-26)
|
123
|
+
|
124
|
+
|
125
|
+
### Bug Fixes
|
126
|
+
|
127
|
+
* Prevent mount .wrap command appearing in log ([#16585](https://github.com/cypress-io/cypress/issues/16585)) ([fca9b9a](https://github.com/cypress-io/cypress/commit/fca9b9aeb052db668d054f589d7894fc4f9c6d5a))
|
128
|
+
|
129
|
+
# [@cypress/react-v5.8.0](https://github.com/cypress-io/cypress/compare/@cypress/react-v5.7.0...@cypress/react-v5.8.0) (2021-05-21)
|
130
|
+
|
131
|
+
|
132
|
+
### Features
|
133
|
+
|
134
|
+
* custom webpack config for react/plugins/babel ([#16597](https://github.com/cypress-io/cypress/issues/16597)) ([75c753b](https://github.com/cypress-io/cypress/commit/75c753be0ee302fed3559b633626036905a45c4d)), closes [#16596](https://github.com/cypress-io/cypress/issues/16596)
|
135
|
+
|
136
|
+
# [@cypress/react-v5.7.0](https://github.com/cypress-io/cypress/compare/@cypress/react-v5.6.0...@cypress/react-v5.7.0) (2021-05-12)
|
137
|
+
|
138
|
+
|
139
|
+
### Features
|
140
|
+
|
141
|
+
* allow to import/require files in CRA plugin out of src ([#16453](https://github.com/cypress-io/cypress/issues/16453)) ([811c7e3](https://github.com/cypress-io/cypress/commit/811c7e36074acf7b4bee9d96505d48141e9d49bf))
|
142
|
+
|
143
|
+
# [@cypress/react-v5.6.0](https://github.com/cypress-io/cypress/compare/@cypress/react-v5.5.0...@cypress/react-v5.6.0) (2021-05-11)
|
144
|
+
|
145
|
+
|
146
|
+
### Bug Fixes
|
147
|
+
|
148
|
+
* accept webapck 4 & 5 as peer dependencies of @cypress/vue and @cypress/react ([#16290](https://github.com/cypress-io/cypress/issues/16290)) ([c4151fb](https://github.com/cypress-io/cypress/commit/c4151fbd9f3c10de28e3e8dd3a75d0e0973b52e2))
|
149
|
+
* remove unnecessary dependency ([#16412](https://github.com/cypress-io/cypress/issues/16412)) ([7b242ac](https://github.com/cypress-io/cypress/commit/7b242acbf6bc3134e4b2f1b1a05fc243e96dfe40))
|
150
|
+
* **npm/react:** support transpiling typescript files in support ([#16197](https://github.com/cypress-io/cypress/issues/16197)) ([60b217c](https://github.com/cypress-io/cypress/commit/60b217cccedf28c56b0573665f0b3ee81813a4cc))
|
151
|
+
|
152
|
+
|
153
|
+
### Features
|
154
|
+
|
155
|
+
* **npm/react:** Add craco plugin ([#16333](https://github.com/cypress-io/cypress/issues/16333)) ([958a9c2](https://github.com/cypress-io/cypress/commit/958a9c2691b4cdbee44053e9decbd6350b9cc7fe))
|
156
|
+
|
157
|
+
# [@cypress/react-v5.5.0](https://github.com/cypress-io/cypress/compare/@cypress/react-v5.4.2...@cypress/react-v5.5.0) (2021-05-05)
|
158
|
+
|
159
|
+
|
160
|
+
### Bug Fixes
|
161
|
+
|
162
|
+
* accept webapck 4 & 5 as peer dependencies of @cypress/vue and @cypress/react ([#16290](https://github.com/cypress-io/cypress/issues/16290)) ([500cab9](https://github.com/cypress-io/cypress/commit/500cab95ef7a7d6b74b366ba8066bcf73f2955aa))
|
163
|
+
* **npm/react:** support transpiling typescript files in support ([#16197](https://github.com/cypress-io/cypress/issues/16197)) ([8a83bb1](https://github.com/cypress-io/cypress/commit/8a83bb1c71c7e46a31c6a720ea25101603fa72b4))
|
164
|
+
|
165
|
+
|
166
|
+
### Features
|
167
|
+
|
168
|
+
* **npm/react:** Add craco plugin ([#16333](https://github.com/cypress-io/cypress/issues/16333)) ([2d8f55b](https://github.com/cypress-io/cypress/commit/2d8f55bfca2daf1dca31aaf1e596751a6cd3d793))
|
169
|
+
|
170
|
+
# [@cypress/react-v5.4.2](https://github.com/cypress-io/cypress/compare/@cypress/react-v5.4.1...@cypress/react-v5.4.2) (2021-04-30)
|
171
|
+
|
172
|
+
|
173
|
+
### Bug Fixes
|
174
|
+
|
175
|
+
* avoid unmounting React components twice ([#16280](https://github.com/cypress-io/cypress/issues/16280)) ([bd629d3](https://github.com/cypress-io/cypress/commit/bd629d307eca9165b2c6f44ff87164a9e07a3eb5))
|
176
|
+
|
177
|
+
# [@cypress/react-v5.4.1](https://github.com/cypress-io/cypress/compare/@cypress/react-v5.4.0...@cypress/react-v5.4.1) (2021-04-29)
|
178
|
+
|
179
|
+
|
180
|
+
### Bug Fixes
|
181
|
+
|
182
|
+
* bump deps and release new version ([#16261](https://github.com/cypress-io/cypress/issues/16261)) ([bd78337](https://github.com/cypress-io/cypress/commit/bd783377520cf4038f09a7ea0e4876960d0eb4ea))
|
183
|
+
|
184
|
+
# [@cypress/react-v5.4.0](https://github.com/cypress-io/cypress/compare/@cypress/react-v5.3.4...@cypress/react-v5.4.0) (2021-04-26)
|
185
|
+
|
186
|
+
|
187
|
+
### Bug Fixes
|
188
|
+
|
189
|
+
* **webpack-dev-server:** remove hard dependency on html-webpack-plugin v4 ([#16108](https://github.com/cypress-io/cypress/issues/16108)) ([4cfe4b1](https://github.com/cypress-io/cypress/commit/4cfe4b1971c615d615c05ce35b9f7dd5ef8315fc))
|
190
|
+
* Properly display unmount as a command ([#16041](https://github.com/cypress-io/cypress/issues/16041)) ([4002e4c](https://github.com/cypress-io/cypress/commit/4002e4c5fd204a3c6d1feba2b1893f92cec8ef60))
|
191
|
+
* **component-testing:** correct imports for relative paths in cypress.json ([#16056](https://github.com/cypress-io/cypress/issues/16056)) ([10b89f8](https://github.com/cypress-io/cypress/commit/10b89f8d587d331256549c3ab7662f119df7a0f1))
|
192
|
+
* **component-testing:** Increased timeout to allow useEffect to trigger ([#16091](https://github.com/cypress-io/cypress/issues/16091)) ([5fb5b41](https://github.com/cypress-io/cypress/commit/5fb5b41f30fd32a9fd087ecf6526d5e680d5dc24))
|
193
|
+
|
194
|
+
|
195
|
+
### Features
|
196
|
+
|
197
|
+
* **component-testing:** breaking: Add React rerender functionality ([#16038](https://github.com/cypress-io/cypress/issues/16038)) ([ee8b918](https://github.com/cypress-io/cypress/commit/ee8b918ea8ad9a4a4df501a541c9af8b8cd3c147))
|
198
|
+
|
199
|
+
# [@cypress/react-v5.3.4](https://github.com/cypress-io/cypress/compare/@cypress/react-v5.3.3...@cypress/react-v5.3.4) (2021-04-21)
|
200
|
+
|
201
|
+
|
202
|
+
### Bug Fixes
|
203
|
+
|
204
|
+
* improve handling of userland injected styles in component testing ([#16024](https://github.com/cypress-io/cypress/issues/16024)) ([fe0b63c](https://github.com/cypress-io/cypress/commit/fe0b63c299947470c9cdce3a0d00364a1e224bdb))
|
205
|
+
|
206
|
+
# [@cypress/react-v5.3.3](https://github.com/cypress-io/cypress/compare/@cypress/react-v5.3.2...@cypress/react-v5.3.3) (2021-04-13)
|
207
|
+
|
208
|
+
|
209
|
+
### Bug Fixes
|
210
|
+
|
211
|
+
* get next config before requiring devserver ([#15885](https://github.com/cypress-io/cypress/issues/15885)) ([6e5fd8f](https://github.com/cypress-io/cypress/commit/6e5fd8f4fc0c3b3a06318dee8d3f358e7a86e484))
|
212
|
+
* make component testing windows compatible ([#15889](https://github.com/cypress-io/cypress/issues/15889)) ([602c762](https://github.com/cypress-io/cypress/commit/602c762cfd707ae497273ac38206d7f9d8545439))
|
213
|
+
* **webpack-dev-server:** remove output.publicPath from webpack-dev-server ([#15839](https://github.com/cypress-io/cypress/issues/15839)) ([8e894a0](https://github.com/cypress-io/cypress/commit/8e894a0fdb899be8dd8993319c9297ea73c10321))
|
214
|
+
|
215
|
+
# [@cypress/react-v5.3.2](https://github.com/cypress-io/cypress/compare/@cypress/react-v5.3.1...@cypress/react-v5.3.2) (2021-04-06)
|
216
|
+
|
217
|
+
|
218
|
+
### Bug Fixes
|
219
|
+
|
220
|
+
* make cypress/react public ([#15799](https://github.com/cypress-io/cypress/issues/15799)) ([df8cb03](https://github.com/cypress-io/cypress/commit/df8cb0345f7b09f393b442ac9b9cbc549eee0f23))
|
221
|
+
|
222
|
+
# [@cypress/react-v5.3.1](https://github.com/cypress-io/cypress/compare/@cypress/react-v5.3.0...@cypress/react-v5.3.1) (2021-04-06)
|
223
|
+
|
224
|
+
|
225
|
+
### Bug Fixes
|
226
|
+
|
227
|
+
* unrestrict access to react/cypress ([#15798](https://github.com/cypress-io/cypress/issues/15798)) ([4c5623f](https://github.com/cypress-io/cypress/commit/4c5623fb1c83c3594f4dc3d2a73431fd2aaaae56))
|
228
|
+
|
229
|
+
# [@cypress/react-v5.3.0](https://github.com/cypress-io/cypress/compare/@cypress/react-v5.2.0...@cypress/react-v5.3.0) (2021-04-05)
|
230
|
+
|
231
|
+
|
232
|
+
### Bug Fixes
|
233
|
+
|
234
|
+
* **@cypress/react:** Devtools unpredictable resets ([#15612](https://github.com/cypress-io/cypress/issues/15612)) ([b1f831a](https://github.com/cypress-io/cypress/commit/b1f831a86a8bcc6646067bc8a9e67871026ff575)), closes [#15634](https://github.com/cypress-io/cypress/issues/15634)
|
235
|
+
* **component-testing:** Fix webpack-dev-server deps validation crash ([#15708](https://github.com/cypress-io/cypress/issues/15708)) ([254eb47](https://github.com/cypress-io/cypress/commit/254eb47d91c75a9f56162e7493ab83e5be169935))
|
236
|
+
|
237
|
+
|
238
|
+
### Features
|
239
|
+
|
240
|
+
* support ct/e2e specific overrides in cypress.json ([#15526](https://github.com/cypress-io/cypress/issues/15526)) ([43c8ae2](https://github.com/cypress-io/cypress/commit/43c8ae2a7c20ba70a0bb0b45b8f6a086e2782f29))
|
241
|
+
* **deps:** update dependency electron to version 12.x 🌟 ([#15292](https://github.com/cypress-io/cypress/issues/15292)) ([b52ac98](https://github.com/cypress-io/cypress/commit/b52ac98a6944bc831221ccb730f89c6cc92a4573))
|
242
|
+
|
243
|
+
# [@cypress/react-v5.2.0](https://github.com/cypress-io/cypress/compare/@cypress/react-v5.1.2...@cypress/react-v5.2.0) (2021-03-19)
|
244
|
+
|
245
|
+
|
246
|
+
### Features
|
247
|
+
|
248
|
+
* **@cypress/react:** Support react-scripts v4 ([#15488](https://github.com/cypress-io/cypress/issues/15488)) ([3e9d752](https://github.com/cypress-io/cypress/commit/3e9d7523eb6aa20773e8c87778b28d19921ae781))
|
249
|
+
|
250
|
+
# [@cypress/react-v5.1.2](https://github.com/cypress-io/cypress/compare/@cypress/react-v5.1.1...@cypress/react-v5.1.2) (2021-03-16)
|
251
|
+
|
252
|
+
|
253
|
+
### Bug Fixes
|
254
|
+
|
255
|
+
* add missing script for building wizard ([#15502](https://github.com/cypress-io/cypress/issues/15502)) ([393a8ca](https://github.com/cypress-io/cypress/commit/393a8ca9cac905e0f6d8623bff889b041dd076b6))
|
256
|
+
|
257
|
+
# [@cypress/react-v5.1.1](https://github.com/cypress-io/cypress/compare/@cypress/react-v5.1.0...@cypress/react-v5.1.1) (2021-03-16)
|
258
|
+
|
259
|
+
|
260
|
+
### Bug Fixes
|
261
|
+
|
262
|
+
* Revert cypress.json changes ([#15499](https://github.com/cypress-io/cypress/issues/15499)) ([237c426](https://github.com/cypress-io/cypress/commit/237c426707714a287ff20ef2bdabff5f0c39e93a))
|
263
|
+
|
264
|
+
# [@cypress/react-v5.1.0](https://github.com/cypress-io/cypress/compare/@cypress/react-v5.0.1...@cypress/react-v5.1.0) (2021-03-15)
|
265
|
+
|
266
|
+
|
267
|
+
### Bug Fixes
|
268
|
+
|
269
|
+
* removing test for previous undesireable behavior ([#15458](https://github.com/cypress-io/cypress/issues/15458)) ([35dde75](https://github.com/cypress-io/cypress/commit/35dde753560e9d53d1c49131187ff30d8e31fc75))
|
270
|
+
* **@cypress/react:** Correctly unmount react components ([#15250](https://github.com/cypress-io/cypress/issues/15250)) ([6b515c7](https://github.com/cypress-io/cypress/commit/6b515c777ca2fa599f21dc47d181fd28a7eb6db0))
|
271
|
+
* **component-testing:** ensure to call unmount after each test ([#15385](https://github.com/cypress-io/cypress/issues/15385)) ([153fc51](https://github.com/cypress-io/cypress/commit/153fc515a53343758393db795879a64494374551))
|
272
|
+
* make webpack-dev-server a peer dependency ([#15163](https://github.com/cypress-io/cypress/issues/15163)) ([fa969fb](https://github.com/cypress-io/cypress/commit/fa969fba78d86494b5d920f573768677301fad13))
|
273
|
+
|
274
|
+
|
275
|
+
### Features
|
276
|
+
|
277
|
+
* support ct/e2e specific overrides in cypress.json ([#15444](https://github.com/cypress-io/cypress/issues/15444)) ([a94c9d5](https://github.com/cypress-io/cypress/commit/a94c9d5ef0da8559f20391fc14396d71fdca7a2f))
|
278
|
+
* **@cypress/react:** Make correct plugins for different adapters/bundlers ([#15337](https://github.com/cypress-io/cypress/issues/15337)) ([fc30118](https://github.com/cypress-io/cypress/commit/fc301182523f0a645bfb17ea3b541644b9732dd0)), closes [#9116](https://github.com/cypress-io/cypress/issues/9116)
|
279
|
+
* create-cypress-tests installation wizard ([#9563](https://github.com/cypress-io/cypress/issues/9563)) ([c405ee8](https://github.com/cypress-io/cypress/commit/c405ee89ef5321df6151fdeec1e917ac952c0d38)), closes [#9116](https://github.com/cypress-io/cypress/issues/9116)
|
280
|
+
* Use lazy compilation for webpack-dev-server by default ([#15158](https://github.com/cypress-io/cypress/issues/15158)) ([f237050](https://github.com/cypress-io/cypress/commit/f237050fdb49e4e59c07a70bb178d88d0e7387a8))
|
281
|
+
|
282
|
+
# [@cypress/react-v5.0.1](https://github.com/cypress-io/cypress/compare/@cypress/react-v5.0.0...@cypress/react-v5.0.1) (2021-02-17)
|
283
|
+
|
284
|
+
### Bug Fixes
|
285
|
+
|
286
|
+
* update dependencies of npm/react-vue ([#15095](https://github.com/cypress-io/cypress/issues/15095)) ([e028262](https://github.com/cypress-io/cypress/commit/e028262aed485865c4f40162c1f8102970ef91f8))
|
287
|
+
* **component-testing:** make content adjust to size of window ([#14876](https://github.com/cypress-io/cypress/issues/14876)) ([4cf3896](https://github.com/cypress-io/cypress/commit/4cf3896ecbb074831709f73f22768457fdaf5779))
|
288
|
+
|
289
|
+
|
290
|
+
### Features
|
291
|
+
|
292
|
+
* component testing ([#14479](https://github.com/cypress-io/cypress/issues/14479)) ([af26fbe](https://github.com/cypress-io/cypress/commit/af26fbebe6bc609132013a0493a116cc78bb1bd4))
|
293
|
+
|
294
|
+
|
295
|
+
### BREAKING CHANGES
|
296
|
+
|
297
|
+
* Added the need to install a preprocessor or a dev-server plugin
|
298
|
+
* Removed the pre-instalation of test coverage
|
299
|
+
* Install it manually by following [the documentation](https://on.cypress.io/code-coverage-introduction)
|
300
|
+
* removed the pre-installation of `cypress-react-selector`
|
301
|
+
* If you use `cy.react()` in your tests, the command will not work anymore. [Install it back in your support file](https://www.npmjs.com/package/cypress-react-selector)
|
302
|
+
|
303
|
+
# [@cypress/react-v4.16.4](https://github.com/cypress-io/cypress/compare/@cypress/react-v4.16.3...@cypress/react-v4.16.4) (2021-01-27)
|
304
|
+
|
305
|
+
|
306
|
+
### Bug Fixes
|
307
|
+
|
308
|
+
* **deps:** update dependency debug to version 4.3.1 🌟 ([#14583](https://github.com/cypress-io/cypress/issues/14583)) ([9be6165](https://github.com/cypress-io/cypress/commit/9be61657f4150ba5dee7b67f806d810f3106d13b))
|
309
|
+
|
310
|
+
# [@cypress/react-v4.16.3](https://github.com/cypress-io/cypress/compare/@cypress/react-v4.16.2...@cypress/react-v4.16.3) (2021-01-05)
|
311
|
+
|
312
|
+
|
313
|
+
### Bug Fixes
|
314
|
+
|
315
|
+
* typo in `@types/react` peer dependency package name ([#14261](https://github.com/cypress-io/cypress/issues/14261)) ([b87519d](https://github.com/cypress-io/cypress/commit/b87519d4f141a45b053ecd9c96facb792a47e2da))
|
316
|
+
|
317
|
+
# [@cypress/react-v4.16.2](https://github.com/cypress-io/cypress/compare/@cypress/react-v4.16.1...@cypress/react-v4.16.2) (2021-01-05)
|
318
|
+
|
319
|
+
|
320
|
+
### Bug Fixes
|
321
|
+
|
322
|
+
* Correct typo in @types/react peerDependencyMeta entry ([#14306](https://github.com/cypress-io/cypress/issues/14306)) ([012d4f1](https://github.com/cypress-io/cypress/commit/012d4f1764345a14f06b9e5f9d26949778b3d525))
|
323
|
+
* **Component Testing:** Broken links in docs ([#14251](https://github.com/cypress-io/cypress/issues/14251)) ([a72529f](https://github.com/cypress-io/cypress/commit/a72529f396baee669c9b112d9296d314177f8cc1))
|
324
|
+
* **deps:** update dependencies in @cypress/react ([#14165](https://github.com/cypress-io/cypress/issues/14165)) ([2c4349e](https://github.com/cypress-io/cypress/commit/2c4349ea7144495db2411aef58e6e8266cf9d13b))
|
325
|
+
|
326
|
+
# [@cypress/react-v4.16.1](https://github.com/cypress-io/cypress/compare/@cypress/react-v4.16.0...@cypress/react-v4.16.1) (2020-12-21)
|
327
|
+
|
328
|
+
|
329
|
+
### Bug Fixes
|
330
|
+
|
331
|
+
* **react:** link types from the correct directory ([#14255](https://github.com/cypress-io/cypress/issues/14255)) ([e2bc209](https://github.com/cypress-io/cypress/commit/e2bc2091a9e242b9a46276d57eddfd6daefdd4c8))
|
332
|
+
|
333
|
+
# [@cypress/react-v4.16.0](https://github.com/cypress-io/cypress/compare/@cypress/react-v4.15.16...@cypress/react-v4.16.0) (2020-11-30)
|
334
|
+
|
335
|
+
|
336
|
+
### Features
|
337
|
+
|
338
|
+
* create-cypress-tests wizard ([#8857](https://github.com/cypress-io/cypress/issues/8857)) ([21ee591](https://github.com/cypress-io/cypress/commit/21ee591d1e9c4083a0c67f2062ced92708c0cedd))
|
339
|
+
|
340
|
+
# [@cypress/react-v4.15.16](https://github.com/cypress-io/cypress/compare/@cypress/react-v4.15.15...@cypress/react-v4.15.16) (2020-11-23)
|
341
|
+
|
342
|
+
|
343
|
+
### Bug Fixes
|
344
|
+
|
345
|
+
* cypress/react release process ([#9284](https://github.com/cypress-io/cypress/issues/9284)) ([88e332c](https://github.com/cypress-io/cypress/commit/88e332c5303613c182e92b77b25da9604039aaa8))
|
346
|
+
|
347
|
+
# [@cypress/react-v4.15.15](https://github.com/cypress-io/cypress/compare/@cypress/react-v4.15.14...@cypress/react-v4.15.15) (2020-11-10)
|
348
|
+
|
349
|
+
|
350
|
+
### Bug Fixes
|
351
|
+
|
352
|
+
* adding build-prod tasks to all of the npm dependencies that need artifacts ([#9045](https://github.com/cypress-io/cypress/issues/9045)) ([550c05c](https://github.com/cypress-io/cypress/commit/550c05cc3d7a2a179de21138ae5f8118277df6ef))
|
353
|
+
|
354
|
+
# [@cypress/react-v4.15.14](https://github.com/cypress-io/cypress/compare/@cypress/react-v4.15.13...@cypress/react-v4.15.14) (2020-10-30)
|
355
|
+
|
356
|
+
|
357
|
+
### Bug Fixes
|
358
|
+
|
359
|
+
* adding build-prod tasks to all of the npm dependencies that need artifacts ([#9046](https://github.com/cypress-io/cypress/issues/9046)) ([462829b](https://github.com/cypress-io/cypress/commit/462829bea1d903b0f1666d4ef2dd85e56636b725))
|
360
|
+
|
361
|
+
# [@cypress/react-v4.15.13](https://github.com/cypress-io/cypress/compare/@cypress/react-v4.15.12...@cypress/react-v4.15.13) (2020-10-29)
|
362
|
+
|
363
|
+
|
364
|
+
### Bug Fixes
|
365
|
+
|
366
|
+
* update bugs link in package.json ([#9015](https://github.com/cypress-io/cypress/issues/9015)) ([34186cb](https://github.com/cypress-io/cypress/commit/34186cb8b76c230a2506cabb0358d44c3205e0c4))
|
367
|
+
|
368
|
+
# [@cypress/react-v4.15.12](https://github.com/cypress-io/cypress/compare/@cypress/react-v4.15.11...@cypress/react-v4.15.12) (2020-10-14)
|
369
|
+
|
370
|
+
|
371
|
+
### Bug Fixes
|
372
|
+
|
373
|
+
* make imported @cypress/react working and pass CI ([#8718](https://github.com/cypress-io/cypress/issues/8718)) ([5e4b638](https://github.com/cypress-io/cypress/commit/5e4b6383854a78d10249621ffea9e4e20effe192))
|