Skip to content

Commit e5637d8

Browse files
authored
Merge pull request #408 from javierbrea/feat-support-cypress-10
Feat support cypress 10
2 parents a7ee175 + 7f3c76e commit e5637d8

28 files changed

+55
-81
lines changed

.eslintrc.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ module.exports = {
2626
extends: ["prettier", "plugin:jest/recommended", "plugin:mocha/recommended"],
2727
overrides: [
2828
{
29-
files: ["test-e2e/**/integration/*.js"],
29+
files: ["test-e2e/**/e2e/*.js"],
3030
rules: {
3131
"jest/valid-expect": [0],
3232
"jest/valid-expect-in-promise": [0],

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,12 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
1111
### Removed
1212
### BREAKING CHANGES
1313

14+
## [2.1.0] - 2022-06-02
15+
16+
### Changed
17+
- chore: Update Cypress devDependency to v10
18+
- test: Use Cypress v10 for running plugin e2e tests. Update configuration.
19+
1420
## [2.0.0] - 2022-05-30
1521

1622
### Removed

package-lock.json

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

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
"@babel/preset-react": "7.17.12",
5353
"@stryker-mutator/core": "6.0.2",
5454
"@stryker-mutator/jest-runner": "6.0.2",
55-
"cypress": "9.7.0",
55+
"cypress": "10.0.1",
5656
"eslint": "8.16.0",
5757
"eslint-config-prettier": "8.5.0",
5858
"eslint-plugin-jest": "26.4.5",
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
const webpackPreprocessor = require("@cypress/webpack-preprocessor");
2+
const defaults = webpackPreprocessor.defaultOptions;
3+
4+
module.exports = {
5+
e2e: {
6+
baseUrl: "http://localhost:3000",
7+
setupNodeEvents(on) {
8+
delete defaults.webpackOptions.module.rules[0].use[0].options.presets;
9+
on("file:preprocessor", webpackPreprocessor(defaults));
10+
},
11+
},
12+
video: false,
13+
};

test-e2e/react-app/cypress.json

Lines changed: 0 additions & 4 deletions
This file was deleted.

0 commit comments

Comments
 (0)