Skip to content

Commit

Permalink
Mocha version upgrade to latest, and mocha-multi-reporters replaced w…
Browse files Browse the repository at this point in the history
…ith cypress-multi-reporters (#2305)

Cypress was failing to start when mocha was upgraded to latest version.
But replacing mocha-multi-reporters with cypress-multi-reporters seems to resolve the issue.
  • Loading branch information
singhArmani authored Jan 30, 2020
1 parent 8f54a4e commit 308ec48
Show file tree
Hide file tree
Showing 11 changed files with 135 additions and 359 deletions.
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@
"chalk-cli": "^4.1.0",
"cross-env": "^5.2.0",
"cypress": "^3.5.0",
"cypress-multi-reporters": "^1.2.3",
"dotenv": "^8.0.0",
"dotenv-safe": "^8.1.0",
"endent": "^1.3.0",
Expand Down Expand Up @@ -88,9 +89,8 @@
"mjml": "^4.3.1",
"mjml-react": "^1.0.55",
"mkdirp": "^0.5.1",
"mocha": "^5.2.0",
"mocha": "^7.0.1",
"mocha-junit-reporter": "^1.21.0",
"mocha-multi-reporters": "^1.1.7",
"moment": "^2.24.0",
"mongodb": "^3.4.1",
"p-is-promise": "^3.0.0",
Expand Down Expand Up @@ -157,7 +157,7 @@
"projects/*"
],
"nohoist": [
"**/mocha-multi-reporters"
"**/cypress-multi-reporters"
]
},
"preconstruct": {
Expand Down
2 changes: 1 addition & 1 deletion test-projects/access-control/cypress.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"reporter": "mocha-multi-reporters",
"reporter": "cypress-multi-reporters",
"reporterOptions": {
"configFile": "multi-reporter-config.json"
}
Expand Down
4 changes: 2 additions & 2 deletions test-projects/access-control/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,12 @@
"devDependencies": {
"cypress": "^3.5.0",
"cypress-file-upload": "^3.4.0",
"cypress-multi-reporters": "^1.2.3",
"dotenv-safe": "^8.1.0",
"execa": "^2.0.4",
"inflection": "^1.12.0",
"mocha": "^5.2.0",
"mocha": "^7.0.1",
"mocha-junit-reporter": "^1.21.0",
"mocha-multi-reporters": "^1.1.7",
"pino-colada": "^1.4.5",
"start-server-and-test": "^1.10.6"
}
Expand Down
2 changes: 1 addition & 1 deletion test-projects/basic/cypress.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"reporter": "mocha-multi-reporters",
"reporter": "cypress-multi-reporters",
"reporterOptions": {
"configFile": "multi-reporter-config.json"
}
Expand Down
2 changes: 1 addition & 1 deletion test-projects/basic/cypress/mock/upload.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
Some important content 0.42365754562902613
Some important content 0.6756829499009345
4 changes: 2 additions & 2 deletions test-projects/basic/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,11 @@
"devDependencies": {
"cypress": "^3.5.0",
"cypress-file-upload": "^3.4.0",
"cypress-multi-reporters": "^1.2.3",
"dotenv-safe": "^8.1.0",
"execa": "^2.0.4",
"mocha": "^5.2.0",
"mocha": "^7.0.1",
"mocha-junit-reporter": "^1.21.0",
"mocha-multi-reporters": "^1.1.7",
"moment": "^2.24.0",
"pino-colada": "^1.4.5",
"start-server-and-test": "^1.10.6"
Expand Down
2 changes: 1 addition & 1 deletion test-projects/client-validation/cypress.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"reporter": "mocha-multi-reporters",
"reporter": "cypress-multi-reporters",
"reporterOptions": {
"configFile": "multi-reporter-config.json"
}
Expand Down
4 changes: 2 additions & 2 deletions test-projects/client-validation/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,11 @@
},
"devDependencies": {
"cypress": "^3.5.0",
"cypress-multi-reporters": "^1.2.3",
"dotenv-safe": "^8.1.0",
"execa": "^2.0.4",
"mocha": "^5.2.0",
"mocha": "^7.0.1",
"mocha-junit-reporter": "^1.21.0",
"mocha-multi-reporters": "^1.1.7",
"moment": "^2.24.0",
"pino-colada": "^1.4.5",
"start-server-and-test": "^1.10.6"
Expand Down
2 changes: 1 addition & 1 deletion test-projects/login/cypress.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"reporter": "mocha-multi-reporters",
"reporter": "cypress-multi-reporters",
"reporterOptions": {
"configFile": "multi-reporter-config.json"
}
Expand Down
4 changes: 2 additions & 2 deletions test-projects/login/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,11 @@
"devDependencies": {
"cypress": "^3.5.0",
"cypress-file-upload": "^3.4.0",
"cypress-multi-reporters": "^1.2.3",
"dotenv-safe": "^8.1.0",
"execa": "^2.0.4",
"mocha": "^5.2.0",
"mocha": "^7.0.1",
"mocha-junit-reporter": "^1.21.0",
"mocha-multi-reporters": "^1.1.7",
"pino-colada": "^1.4.5",
"start-server-and-test": "^1.10.6"
}
Expand Down
Loading

0 comments on commit 308ec48

Please sign in to comment.