diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e29004c274f..9ef7ef57ee9 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -70,6 +70,10 @@ jobs: - name: Install dependencies run: npm install + - name: Use Mocha 11 on Node versions Mocha 12 does not support + if: ${{ matrix.node-version == 18 || matrix.node-version == 19 || matrix.node-version == 21 }} + run: npm install --no-save mocha@11 + - name: Output Node and NPM versions run: | echo "Node.js version: $(node -v)" diff --git a/package.json b/package.json index a7fae5a21b0..997caa91a13 100644 --- a/package.json +++ b/package.json @@ -72,7 +72,7 @@ "hbs": "4.3.1", "marked": "^15.0.3", "method-override": "3.0.0", - "mocha": "^11.7.5", + "mocha": "^12.0.3", "morgan": "1.12.1", "nyc": "^17.1.0", "pbkdf2-password": "1.2.1",