Skip to content

Commit

Permalink
Merge pull request #172 from javierbrea/release
Browse files Browse the repository at this point in the history
Release v3.3.0
  • Loading branch information
javierbrea authored Nov 13, 2021
2 parents 86044fd + 24fd591 commit 2a9ed68
Show file tree
Hide file tree
Showing 17 changed files with 2,996 additions and 104 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
strategy:
matrix:
# NodeJS v17 still not supported in tests due to incompatibility with react-scripts
node: ["12.22.7", "14.16.1", "15.14.0", "16.13.0"]
node: ["14.16.1", "15.14.0", "16.13.0"]
steps:
- name: Checkout
uses: actions/checkout@v2
Expand Down
15 changes: 15 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,21 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
### Removed
### BREAKING CHANGES

## [3.3.0] - 2021-11-13

### Added
- feat(#169): Support Cypress 9.x
- test(#169): Run E2E tests also with Cypress 9.x
- chore: Do not run pipelines with Node.js v12.x in order to make tests lighter

### Changed
- chore(deps): Support any Cypress version greater than 5.x in peerDependencies.
- chore(deps): Update devDependencies
- chore(deps): Configure renovate to not upgrade Cypress major versions in E2E tests of versions 7.x and 8.x

### Removed
- docs: Remove npm dependencies broken badge

## [3.2.0] - 2021-11-01

### Changed
Expand Down
7 changes: 3 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[![Build status][build-image]][build-url] [![Coverage Status][coveralls-image]][coveralls-url] [![Quality Gate][quality-gate-image]][quality-gate-url] [![Mutation testing badge](https://img.shields.io/endpoint?style=flat&url=https%3A%2F%2Fbadge-api.stryker-mutator.io%2Fgithub.com%2Fjavierbrea%2Fcypress-fail-fast%2Fmain)](https://dashboard.stryker-mutator.io/reports/github.com/javierbrea/cypress-fail-fast/main)

[![NPM dependencies][npm-dependencies-image]][npm-dependencies-url] [![Renovate](https://img.shields.io/badge/renovate-enabled-brightgreen.svg)](https://renovatebot.com) [![Last commit][last-commit-image]][last-commit-url] [![Last release][release-image]][release-url]
[![Renovate](https://img.shields.io/badge/renovate-enabled-brightgreen.svg)](https://renovatebot.com) [![Last commit][last-commit-image]][last-commit-url] [![Last release][release-image]][release-url]

[![NPM downloads][npm-downloads-image]][npm-downloads-url] [![License][license-image]][license-url]

Expand Down Expand Up @@ -207,13 +207,14 @@ export default (on: Cypress.PluginEvents, config: Cypress.PluginConfigOptions):

## Tests

To ensure the plugin stability, it is being tested with Cypress major versions 5.x, 6.x, 7.x and 8.x and new releases will be published for each new Cypress minor or major releases, updating the package E2E tests.
To ensure the plugin stability, it is being tested with Cypress major versions 5.x, 6.x, 7.x, 8.x and 9.x, and new releases will be published for each new Cypress minor or major releases, updating the package E2E tests.

Latest versions used in the E2E tests can be checked in the `devDependencies` of the `package.json` files of the E2E tests:
* [Cypress v5.x](https://github.com/javierbrea/cypress-fail-fast/blob/main/test-e2e/cypress-variants/cypress-5/package.json)
* [Cypress v6.x](https://github.com/javierbrea/cypress-fail-fast/blob/main/test-e2e/cypress-variants/cypress-6/package.json)
* [Cypress v7.x](https://github.com/javierbrea/cypress-fail-fast/blob/main/test-e2e/cypress-variants/cypress-7/package.json)
* [Cypress v8.x](https://github.com/javierbrea/cypress-fail-fast/blob/main/test-e2e/cypress-variants/cypress-8/package.json)
* [Cypress v9.x](https://github.com/javierbrea/cypress-fail-fast/blob/main/test-e2e/cypress-variants/cypress-9/package.json)

Anyway, if you find any issue for a specific Cypress version, please report it at https://github.com/javierbrea/cypress-fail-fast/issues.

Expand All @@ -240,8 +241,6 @@ MIT, see [LICENSE](./LICENSE) for details.
[license-url]: https://github.com/javierbrea/cypress-fail-fast/blob/main/LICENSE
[npm-downloads-image]: https://img.shields.io/npm/dm/cypress-fail-fast.svg
[npm-downloads-url]: https://www.npmjs.com/package/cypress-fail-fast
[npm-dependencies-image]: https://img.shields.io/david/javierbrea/cypress-fail-fast.svg
[npm-dependencies-url]: https://david-dm.org/javierbrea/cypress-fail-fast
[quality-gate-image]: https://sonarcloud.io/api/project_badges/measure?project=javierbrea_cypress-fail-fast&metric=alert_status
[quality-gate-url]: https://sonarcloud.io/dashboard?id=javierbrea_cypress-fail-fast
[release-image]: https://img.shields.io/github/release-date/javierbrea/cypress-fail-fast.svg
Expand Down
14 changes: 7 additions & 7 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "cypress-fail-fast",
"version": "3.2.0",
"version": "3.3.0",
"description": "Skip the rest of Cypress tests on first failure",
"keywords": [
"cypress",
Expand Down Expand Up @@ -41,7 +41,7 @@
"prepare": "is-ci || husky install"
},
"peerDependencies": {
"cypress": "5.x || 6.x || 7.x || 8.x"
"cypress": ">=5.0.0"
},
"dependencies": {
"chalk": "4.1.2"
Expand All @@ -54,15 +54,15 @@
"cypress": "8.7.0",
"eslint": "8.1.0",
"eslint-config-prettier": "8.3.0",
"eslint-plugin-prettier": "3.4.1",
"eslint-plugin-prettier": "4.0.0",
"eslint-plugin-react": "7.25.1",
"husky": "7.0.4",
"is-ci": "3.0.1",
"jest": "27.3.1",
"lint-staged": "11.2.6",
"prettier": "2.3.2",
"sinon": "11.1.2",
"typescript": "4.4.2"
"typescript": "4.4.4"
},
"lint-staged": {
"*.js": "eslint",
Expand Down
10 changes: 10 additions & 0 deletions renovate.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,16 @@
"matchPaths": ["test-e2e/cypress-variants/cypress-6/package.json"],
"matchPackageNames": ["cypress"],
"allowedVersions": "<7.0.0"
},
{
"matchPaths": ["test-e2e/cypress-variants/cypress-7/package.json"],
"matchPackageNames": ["cypress"],
"allowedVersions": "<8.0.0"
},
{
"matchPaths": ["test-e2e/cypress-variants/cypress-8/package.json"],
"matchPackageNames": ["cypress"],
"allowedVersions": "<9.0.0"
}
]
}
2 changes: 1 addition & 1 deletion sonar-project.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
sonar.organization=javierbrea
sonar.projectKey=javierbrea_cypress-fail-fast
sonar.projectVersion=3.2.0
sonar.projectVersion=3.3.0

sonar.javascript.file.suffixes=.js
sonar.sourceEncoding=UTF-8
Expand Down
16 changes: 16 additions & 0 deletions src/support.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,22 @@ function support(Cypress, cy, beforeEach, afterEach, before) {
if (test.cfg) {
return test.cfg;
}
// Cypress >9
if (
test.ctx &&
test.ctx.test &&
test.ctx.test._testConfig &&
test.ctx.test._testConfig.testConfigList &&
test.ctx.test._testConfig.testConfigList[
test.ctx.test._testConfig.testConfigList.length - 1
] &&
test.ctx.test._testConfig.testConfigList[test.ctx.test._testConfig.testConfigList.length - 1]
.overrides
) {
return test.ctx.test._testConfig.testConfigList[
test.ctx.test._testConfig.testConfigList.length - 1
].overrides;
}
// Cypress >6.7
if (test.ctx && test.ctx.test && test.ctx.test._testConfig) {
return test.ctx.test._testConfig;
Expand Down
6 changes: 6 additions & 0 deletions test-e2e/commands/support/variants.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,12 @@ const VARIANTS = [
typescript: false,
pluginFile: "preprocessor-babel-config",
},
{
name: "Cypress 9",
path: "cypress-9",
typescript: false,
pluginFile: "preprocessor-babel-config",
},
{
name: "TypeScript",
path: "typescript",
Expand Down
7 changes: 7 additions & 0 deletions test-e2e/cypress-variants/cypress-9/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# exclude everything
/*

# exception to the rule
!/.gitignore
!/package.json
!/package-lock.json
Loading

0 comments on commit 2a9ed68

Please sign in to comment.