Skip to content
This repository has been archived by the owner on Nov 14, 2021. It is now read-only.

Commit

Permalink
Upgrade cypress to 7.1.0 (#25)
Browse files Browse the repository at this point in the history
* Add cypress 7.1.0

* Add moment dependency

* Fix coverage for e2e tests

* Fix coverage

* Upgrade code-coverage dependency
  • Loading branch information
carlosthe19916 committed Apr 13, 2021
1 parent 16c4592 commit 3530d37
Show file tree
Hide file tree
Showing 4 changed files with 139 additions and 66 deletions.
7 changes: 7 additions & 0 deletions cypress/plugins/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,11 @@
module.exports = (on, config) => {
// `on` is used to hook into various events Cypress emits
// `config` is the resolved Cypress config

require('@cypress/code-coverage/task')(on, config)
// include any other plugin code...

// It's IMPORTANT to return the config object
// with any changed environment variables
return config
}
2 changes: 2 additions & 0 deletions cypress/support/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,7 @@
// Import commands.js using ES2015 syntax:
import './commands'

import '@cypress/code-coverage/support'

// Alternatively you can use CommonJS syntax:
// require('./commands')
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
"@types/react-dom": "^17.0.0",
"axios": "^0.21.1",
"keycloak-js": "^12.0.1",
"moment": "^2.29.1",
"react": "^16.13.1",
"react-dom": "^16.13.1",
"react-moment": "^1.1.1",
Expand Down Expand Up @@ -63,7 +64,7 @@
]
},
"devDependencies": {
"@cypress/code-coverage": "^3.9.2",
"@cypress/code-coverage": "3.9.4",
"@cypress/instrument-cra": "^1.4.0",
"@storybook/addon-actions": "^6.1.14",
"@storybook/addon-essentials": "^6.1.14",
Expand All @@ -80,7 +81,7 @@
"@types/redux-logger": "^3.0.8",
"axios-mock-adapter": "^1.19.0",
"concurrently": "^5.3.0",
"cypress": "^6.2.1",
"cypress": "7.1.0",
"enzyme": "^3.11.0",
"enzyme-adapter-react-16": "^1.15.5",
"http-proxy-middleware": "^1.0.6",
Expand Down
Loading

0 comments on commit 3530d37

Please sign in to comment.