Skip to content

Commit

Permalink
Update Mocha to 8.4.0 (#2652)
Browse files Browse the repository at this point in the history
  • Loading branch information
sbosio authored Feb 21, 2024
1 parent fe49fa0 commit bffd998
Show file tree
Hide file tree
Showing 25 changed files with 360 additions and 759 deletions.
9 changes: 8 additions & 1 deletion packages/addons-v5/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"chai-as-promised": "^7.1.1",
"heroku-client": "^3.0.7",
"lolex": "^3.1.0",
"mocha": "^6.0.0",
"mocha": "^8.0.0",
"nock": "9.0.13",
"nyc": "^15.1.0",
"oclif": "3.11.3",
Expand All @@ -46,6 +46,13 @@
],
"license": "ISC",
"main": "index.js",
"mocha": {
"reporter": "list",
"recursive": true,
"check-leaks": true,
"require": ["./test/init.js"],
"timeout": 180000
},
"repository": "heroku/cli",
"scripts": {
"lint": "eslint . --ext .js --config ../../.eslintrc --ignore-path ../../.eslintignore",
Expand Down
5 changes: 0 additions & 5 deletions packages/addons-v5/test/mocha.opts

This file was deleted.

11 changes: 10 additions & 1 deletion packages/apps-v5/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
"chai": "^4.2.0",
"chai-as-promised": "^7.1.1",
"lolex": "^3.1.0",
"mocha": "^6.0.0",
"mocha": "^8.0.0",
"mockdate": "^2.0.2",
"netrc-parser": "^3.1.6",
"nock": "^10.0.6",
Expand All @@ -60,6 +60,15 @@
],
"license": "ISC",
"main": "src/index.js",
"mocha": {
"require": [
"./test/init.js",
"./test/helpers.js"
],
"reporter": "list",
"recursive": true,
"timeout": 180000
},
"publishConfig": {
"access": "public"
},
Expand Down
5 changes: 0 additions & 5 deletions packages/apps-v5/test/mocha.opts

This file was deleted.

11 changes: 10 additions & 1 deletion packages/certs-v5/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"chai": "^4.2.0",
"chai-as-promised": "^7.1.1",
"lolex": "^3.1.0",
"mocha": "^6.0.0",
"mocha": "^8.0.0",
"nock": "^10.0.6",
"nyc": "^15.1.0",
"oclif": "3.11.3",
Expand All @@ -48,6 +48,15 @@
"heroku-plugin"
],
"license": "ISC",
"mocha": {
"require": [
"./test/init.js",
"./test/helpers.js"
],
"reporter": "list",
"recursive": true,
"timeout": 180000
},
"repository": "heroku/cli",
"scripts": {
"lint": "eslint . --ext .js --config ../../.eslintrc --ignore-path ../../.eslintignore",
Expand Down
5 changes: 0 additions & 5 deletions packages/certs-v5/test/mocha.opts

This file was deleted.

8 changes: 7 additions & 1 deletion packages/ci-v5/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
"chai": "^4.2.0",
"estraverse": "^4.2.0",
"heroku-client": "^3.0.7",
"mocha": "^6.0.0",
"mocha": "^8.0.0",
"nock": "^10.0.6",
"nyc": "^15.1.0",
"oclif": "3.11.3",
Expand All @@ -53,6 +53,12 @@
],
"license": "MIT",
"main": "index.js",
"mocha": {
"require": ["test/test-setup.js"],
"recursive": true,
"reporter": "dot",
"timeout": 180000
},
"repository": "heroku/cli",
"scripts": {
"lint": "eslint . --ext .js --config ../../.eslintrc --ignore-path ../../.eslintignore",
Expand Down
5 changes: 0 additions & 5 deletions packages/ci-v5/test/mocha.opts

This file was deleted.

13 changes: 12 additions & 1 deletion packages/cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@
"chai": "^4.2.0",
"globby": "^10.0.2",
"lodash": "^4.17.11",
"mocha": "^6.0.0",
"mocha": "^8.0.0",
"nock": "^10.0.6",
"nyc": "^15.1.0",
"oclif": "3.11.3",
Expand Down Expand Up @@ -134,6 +134,17 @@
],
"license": "ISC",
"main": "lib/index.js",
"mocha": {
"require": [
"test/helpers/init.js",
"ts-node/register",
"source-map-support/register"
],
"watch-extensions": "ts",
"recursive": true,
"reporter": "spec",
"timeout": 180000
},
"oclif": {
"additionalHelpFlags": [
"-h"
Expand Down
7 changes: 0 additions & 7 deletions packages/cli/test/mocha.opts

This file was deleted.

8 changes: 7 additions & 1 deletion packages/container-registry-v5/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"cross-env": "^7.0.2",
"depcheck": "^1.4.3",
"lolex": "^3.1.0",
"mocha": "^6.0.0",
"mocha": "^8.0.0",
"mockdate": "^2.0.2",
"nock": "^10.0.6",
"nyc": "^15.1.0",
Expand All @@ -50,6 +50,12 @@
],
"license": "ISC",
"main": "index.js",
"mocha": {
"require": ["./test/helpers.js"],
"reporter": "list",
"recursive": true,
"timeout": 180000
},
"repository": "heroku/cli",
"scripts": {
"depcheck": "depcheck || true",
Expand Down
4 changes: 0 additions & 4 deletions packages/container-registry-v5/test/mocha.opts

This file was deleted.

7 changes: 6 additions & 1 deletion packages/oauth-v5/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"chai": "^4.2.0",
"chai-as-promised": "^7.1.1",
"cross-env": "^7.0.2",
"mocha": "^6.0.0",
"mocha": "^8.0.0",
"mocha-junit-reporter": "1.18.0",
"nock": "10.0.6",
"nyc": "^15.1.0",
Expand All @@ -46,6 +46,11 @@
"heroku-plugin"
],
"license": "ISC",
"mocha": {
"require": ["./test/init.js"],
"recursive": true,
"timeout": 180000
},
"publishConfig": {
"access": "public"
},
Expand Down
3 changes: 0 additions & 3 deletions packages/oauth-v5/test/mocha.opts

This file was deleted.

7 changes: 6 additions & 1 deletion packages/orgs-v5/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
"devDependencies": {
"@oclif/plugin-legacy": "^1.3.0",
"chai": "^4.2.0",
"mocha": "^6.0.0",
"mocha": "^8.0.0",
"nock": "^10.0.6",
"nyc": "^15.1.0",
"oclif": "3.11.3",
Expand All @@ -66,6 +66,11 @@
],
"license": "ISC",
"main": "index.js",
"mocha": {
"require": ["./test/helpers.js"],
"recursive": true,
"timeout": 180000
},
"repository": "heroku/cli",
"scripts": {
"lint": "eslint . --ext .js --config ../../.eslintrc --ignore-path ../../.eslintignore",
Expand Down
3 changes: 0 additions & 3 deletions packages/orgs-v5/test/mocha.opts

This file was deleted.

7 changes: 6 additions & 1 deletion packages/pg-v5/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"chai-as-promised": "^7.1.1",
"cross-env": "^7.0.2",
"heroku-client": "^3.0.7",
"mocha": "^6.0.0",
"mocha": "^8.0.0",
"nock": "^10.0.6",
"nyc": "^15.1.0",
"oclif": "3.11.3",
Expand All @@ -56,6 +56,11 @@
],
"license": "ISC",
"main": "index.js",
"mocha":{
"recursive": true,
"require": ["./test/init.js"],
"timeout": 180000
},
"repository": "heroku/cli",
"scripts": {
"lint": "eslint . --ext .js --config ../../.eslintrc --ignore-path ../../.eslintignore",
Expand Down
3 changes: 0 additions & 3 deletions packages/pg-v5/test/mocha.opts

This file was deleted.

9 changes: 8 additions & 1 deletion packages/redis-v5/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"chai": "^4.2.0",
"chai-as-promised": "^7.1.1",
"lolex": "^3.1.0",
"mocha": "^6.0.0",
"mocha": "^8.0.0",
"nock": "^10.0.6",
"nyc": "^15.1.0",
"oclif": "3.11.3",
Expand All @@ -42,6 +42,13 @@
],
"license": "ISC",
"main": "index.js",
"mocha": {
"require": ["./test/init.js"],
"reporter": "list",
"recursive": true,
"exit": true,
"timeout": 180000
},
"repository": "heroku/cli",
"scripts": {
"lint": "eslint . --ext .js --config ../../.eslintrc --ignore-path ../../.eslintignore",
Expand Down
5 changes: 0 additions & 5 deletions packages/redis-v5/test/mocha.opts

This file was deleted.

8 changes: 7 additions & 1 deletion packages/run-v5/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"@oclif/plugin-legacy": "^1.3.0",
"chai": "^4.2.0",
"fixture-stdout": "0.2.1",
"mocha": "^6.0.0",
"mocha": "^8.0.0",
"mocha-junit-reporter": "1.18.0",
"netrc": "0.1.4",
"nock": "^10.0.6",
Expand All @@ -52,6 +52,12 @@
"heroku-plugin"
],
"license": "ISC",
"mocha": {
"require": ["./test/init.js"],
"recursive": true,
"timeout": 180000,
"exit": true
},
"oclif": {
"additionalHelpFlags": [
"-h"
Expand Down
4 changes: 0 additions & 4 deletions packages/run-v5/test/mocha.opts

This file was deleted.

8 changes: 7 additions & 1 deletion packages/spaces/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"@oclif/plugin-legacy": "^1.3.0",
"chai": "^4.2.0",
"chai-as-promised": "^7.1.1",
"mocha": "^6.0.0",
"mocha": "^8.0.0",
"nock": "^10.0.6",
"nyc": "^15.1.0",
"oclif": "3.11.3",
Expand All @@ -45,6 +45,12 @@
],
"license": "ISC",
"main": "index.js",
"mocha": {
"require": ["./test/helpers.js"],
"reporter": "list",
"recursive": true,
"timeout": 180000
},
"repository": "heroku/cli",
"scripts": {
"lint": "eslint . --ext .js --config ../../.eslintrc --ignore-path ../../.eslintignore",
Expand Down
4 changes: 0 additions & 4 deletions packages/spaces/test/mocha.opts

This file was deleted.

Loading

0 comments on commit bffd998

Please sign in to comment.