diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7f03163..9444ab6 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -74,9 +74,11 @@ jobs: - name: Node.js 8.x node-version: "8.16" + npm-i: mocha@7.2.0 - name: Node.js 9.x node-version: "9.11" + npm-i: mocha@7.2.0 - name: Node.js 10.x node-version: "10.24" diff --git a/appveyor.yml b/appveyor.yml index 048cd87..207778d 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -44,6 +44,7 @@ install: # - use 3.x for Node.js < 4 # - use 5.x for Node.js < 6 # - use 6.x for Node.js < 8 + # - use 7.x for Node.js < 10 if ([int]$env:nodejs_version.split(".")[0] -eq 0 -and [int]$env:nodejs_version.split(".")[1] -lt 10) { npm install --silent --save-dev mocha@2.5.3 } elseif ([int]$env:nodejs_version.split(".")[0] -lt 4) { @@ -52,6 +53,8 @@ install: npm install --silent --save-dev mocha@5.2.0 } elseif ([int]$env:nodejs_version.split(".")[0] -lt 8) { npm install --silent --save-dev mocha@6.2.3 + } elseif ([int]$env:nodejs_version.split(".")[0] -lt 10) { + npm install --silent --save-dev mocha@7.2.0 } - ps: | # supertest for http calls diff --git a/package.json b/package.json index 837054c..053e4b4 100644 --- a/package.json +++ b/package.json @@ -20,7 +20,7 @@ "eslint-plugin-promise": "5.1.1", "eslint-plugin-standard": "4.1.0", "istanbul": "0.4.5", - "mocha": "7.2.0", + "mocha": "8.4.0", "safe-buffer": "5.1.2", "supertest": "6.1.6" },