Skip to content

Commit 66dede6

Browse files
authored
Update mocha to ^v11.6.0 (#5908)
* Update mocha to ^v11.6.0 * Make sure we use old mocha for guardrails and update version range This allows to update mocha for our main tests still supporting the guardrails properly. On top of that, update the guardrails version range to run on newer versions and reduce obsolete entries.
1 parent 2f99f41 commit 66dede6

File tree

3 files changed

+199
-56
lines changed

3 files changed

+199
-56
lines changed

.github/workflows/platform.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -287,14 +287,15 @@ jobs:
287287
integration-guardrails:
288288
strategy:
289289
matrix:
290-
version: [14.0.0, 14, 16.0.0, eol, 18.0.0, 18.1.0, 20.0.0, 22.0.0]
290+
version: [14.0.0, 14, 16.0.0, 18.0.0, 20.0.0, 22.0.0, 24.0.0]
291291
runs-on: ubuntu-latest
292292
steps:
293293
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
294294
- uses: ./.github/actions/node
295295
with:
296296
version: ${{ matrix.version }}
297297
- uses: ./.github/actions/install
298+
- run: yarn add --ignore-scripts mocha@10 # Use older mocha to support old Node.js versions
298299
- run: node node_modules/.bin/mocha --colors --timeout 30000 integration-tests/init.spec.js
299300

300301
integration-guardrails-unsupported:

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@
142142
"globals": "^15.15.0",
143143
"graphql": "0.13.2",
144144
"jszip": "^3.10.1",
145-
"mocha": "^10.8.2",
145+
"mocha": "^11.6.0",
146146
"multer": "^2.0.1",
147147
"nock": "^11.9.1",
148148
"nyc": "^15.1.0",

0 commit comments

Comments
 (0)