Skip to content

Commit 77a799a

Browse files
authored
Merge pull request #331 from javierbrea/chore-330-cypress-v8
Support Cypress v8
2 parents 33fff4b + 2a2399a commit 77a799a

File tree

7 files changed

+122
-329
lines changed

7 files changed

+122
-329
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
77
## [unreleased]
88
### Added
99
### Changed
10+
- chore(#330): Use Cypress v8 in E2E tests. Add Cypress v8.x to peerDependencies
1011
### Fixed
1112
### Removed
1213
### BREAKING CHANGES

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
"prepare": "is-ci || husky install"
4444
},
4545
"peerDependencies": {
46-
"cypress": "^2.1.0 || 3.x || 4.x || 5.x || 6.x || 7.x"
46+
"cypress": "^2.1.0 || 3.x || 4.x || 5.x || 6.x || 7.x || 8.x"
4747
},
4848
"devDependencies": {
4949
"@stryker-mutator/core": "5.1.1",
Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1-
module.exports = () => {
2-
// do nothing
1+
const webpackPreprocessor = require("@cypress/webpack-preprocessor");
2+
const defaults = webpackPreprocessor.defaultOptions;
3+
4+
module.exports = (on) => {
5+
delete defaults.webpackOptions.module.rules[0].use[0].options.presets;
6+
on("file:preprocessor", webpackPreprocessor(defaults));
37
};

test-e2e/react-app/package-lock.json

Lines changed: 43 additions & 124 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

test-e2e/react-app/package.json

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,26 @@
3737
]
3838
},
3939
"devDependencies": {
40+
"@cypress/webpack-preprocessor": "5.9.1",
4041
"babel-plugin-module-resolver": "4.1.0",
41-
"cypress": "7.5.0",
42+
"cypress": "8.0.0",
4243
"react-scripts": "4.0.3",
4344
"serve": "12.0.0",
4445
"start-server-and-test": "1.12.5"
46+
},
47+
"babel": {
48+
"plugins": [
49+
[
50+
"module-resolver",
51+
{
52+
"root": [
53+
"."
54+
],
55+
"alias": {
56+
"cypress-localstorage-commands": "../../"
57+
}
58+
}
59+
]
60+
]
4561
}
4662
}

0 commit comments

Comments
 (0)