From bc4f1f976075f8c164caf761eb79ff48bde0efab Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Fri, 4 Sep 2026 08:41:53 +0000 Subject: [PATCH 1/3] chore(deps-dev): bump glob from 7.2.3 to 13.0.6 Bumps [glob](https://github.com/isaacs/node-glob) from 7.2.3 to 13.0.6. - [Changelog](https://github.com/isaacs/node-glob/blob/main/changelog.md) - [Commits](https://github.com/isaacs/node-glob/compare/v7.2.3...v13.0.6) --- updated-dependencies: - dependency-name: glob dependency-version: 13.0.6 dependency-type: direct:development update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] --- package-lock.json | 145 +++++++++++++++++++++++++++++----------------- package.json | 2 +- 2 files changed, 93 insertions(+), 54 deletions(-) diff --git a/package-lock.json b/package-lock.json index 7eab5597..7c9bfb2c 100644 --- a/package-lock.json +++ b/package-lock.json @@ -32,7 +32,7 @@ "@types/vscode": "1.95.0", "@vscode/test-electron": "^3.1.0", "copy-webpack-plugin": "^14.0.0", - "glob": "^7.2.3", + "glob": "^13.0.6", "mocha": "^11.7.5", "ts-loader": "^9.6.2", "tslint": "^6.1.3", @@ -1799,7 +1799,8 @@ "version": "1.0.0", "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", "integrity": "sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==", - "dev": true + "dev": true, + "license": "ISC" }, "node_modules/function-bind": { "version": "1.1.2", @@ -1833,20 +1834,18 @@ } }, "node_modules/glob": { - "version": "7.2.3", - "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz", - "integrity": "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==", + "version": "13.0.6", + "resolved": "https://registry.npmjs.org/glob/-/glob-13.0.6.tgz", + "integrity": "sha512-Wjlyrolmm8uDpm/ogGyXZXb1Z+Ca2B8NbJwqBVg0axK9GbBeoS7yGV6vjXnYdGm6X53iehEuxxbyiKp8QmN4Vw==", "dev": true, + "license": "BlueOak-1.0.0", "dependencies": { - "fs.realpath": "^1.0.0", - "inflight": "^1.0.4", - "inherits": "2", - "minimatch": "^3.1.1", - "once": "^1.3.0", - "path-is-absolute": "^1.0.0" + "minimatch": "^10.2.2", + "minipass": "^7.1.3", + "path-scurry": "^2.0.2" }, "engines": { - "node": "*" + "node": "18 || 20 || >=22" }, "funding": { "url": "https://github.com/sponsors/isaacs" @@ -1864,26 +1863,21 @@ "node": ">=10.13.0" } }, - "node_modules/glob/node_modules/brace-expansion": { - "version": "1.1.18", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.18.tgz", - "integrity": "sha512-Edep/X9fGqVNmzKBVsDYIOtD+z1tuezV70LBjdCst9Tqu76lsnvRiZ6oTic1n+/BIwX6QDGAO94PN4N2SADvtw==", - "dev": true, - "dependencies": { - "balanced-match": "^1.0.0", - "concat-map": "0.0.1" - } - }, - "node_modules/glob/node_modules/minimatch": { - "version": "3.1.5", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.5.tgz", - "integrity": "sha512-VgjWUsnnT6n+NUk6eZq77zeFdpW2LWDzP6zFGrCbHXiYNul5Dzqk2HHQ5uFH2DNW5Xbp8+jVzaeNt94ssEEl4w==", + "node_modules/glob/node_modules/path-scurry": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/path-scurry/-/path-scurry-2.0.2.tgz", + "integrity": "sha512-3O/iVVsJAPsOnpwWIeD+d6z/7PmqApyQePUtCndjatj/9I5LylHvt5qluFaBT3I5h3r1ejfR056c+FCv+NnNXg==", "dev": true, + "license": "BlueOak-1.0.0", "dependencies": { - "brace-expansion": "^1.1.7" + "lru-cache": "^11.0.0", + "minipass": "^7.1.2" }, "engines": { - "node": "*" + "node": "18 || 20 || >=22" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" } }, "node_modules/globby": { @@ -2003,7 +1997,9 @@ "version": "1.0.6", "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", "integrity": "sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA==", + "deprecated": "This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful.", "dev": true, + "license": "ISC", "dependencies": { "once": "^1.3.0", "wrappy": "1" @@ -2286,6 +2282,16 @@ "url": "https://github.com/sponsors/sindresorhus" } }, + "node_modules/lru-cache": { + "version": "11.5.2", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-11.5.2.tgz", + "integrity": "sha512-4pfM1Ff0x50o0tQwb5ucw/RzNyD0/YJME6IVcStalZuMWxdt3sR3huStTtxz4PUmvZfRguvDejasvQ2kifR11g==", + "dev": true, + "license": "BlueOak-1.0.0", + "engines": { + "node": "20 || >=22" + } + }, "node_modules/merge-stream": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/merge-stream/-/merge-stream-2.0.0.tgz", @@ -2575,6 +2581,7 @@ "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", "integrity": "sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==", "dev": true, + "license": "ISC", "dependencies": { "wrappy": "1" } @@ -2795,6 +2802,7 @@ "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", "integrity": "sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg==", "dev": true, + "license": "MIT", "engines": { "node": ">=0.10.0" } @@ -3606,6 +3614,28 @@ "node": ">=0.8.0" } }, + "node_modules/tslint/node_modules/glob": { + "version": "7.2.3", + "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz", + "integrity": "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==", + "deprecated": "Old versions of glob are not supported, and contain widely publicized security vulnerabilities, which have been fixed in the current version. Please update. Support for old versions may be purchased (at exorbitant rates) by contacting i@izs.me", + "dev": true, + "license": "ISC", + "dependencies": { + "fs.realpath": "^1.0.0", + "inflight": "^1.0.4", + "inherits": "2", + "minimatch": "^3.1.1", + "once": "^1.3.0", + "path-is-absolute": "^1.0.0" + }, + "engines": { + "node": "*" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, "node_modules/tslint/node_modules/has-flag": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", @@ -4036,7 +4066,8 @@ "version": "1.0.2", "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", "integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==", - "dev": true + "dev": true, + "license": "ISC" }, "node_modules/y18n": { "version": "5.0.8", @@ -5381,36 +5412,24 @@ "dev": true }, "glob": { - "version": "7.2.3", - "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz", - "integrity": "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==", + "version": "13.0.6", + "resolved": "https://registry.npmjs.org/glob/-/glob-13.0.6.tgz", + "integrity": "sha512-Wjlyrolmm8uDpm/ogGyXZXb1Z+Ca2B8NbJwqBVg0axK9GbBeoS7yGV6vjXnYdGm6X53iehEuxxbyiKp8QmN4Vw==", "dev": true, "requires": { - "fs.realpath": "^1.0.0", - "inflight": "^1.0.4", - "inherits": "2", - "minimatch": "^3.1.1", - "once": "^1.3.0", - "path-is-absolute": "^1.0.0" + "minimatch": "^10.2.2", + "minipass": "^7.1.3", + "path-scurry": "^2.0.2" }, "dependencies": { - "brace-expansion": { - "version": "1.1.18", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.18.tgz", - "integrity": "sha512-Edep/X9fGqVNmzKBVsDYIOtD+z1tuezV70LBjdCst9Tqu76lsnvRiZ6oTic1n+/BIwX6QDGAO94PN4N2SADvtw==", - "dev": true, - "requires": { - "balanced-match": "^1.0.0", - "concat-map": "0.0.1" - } - }, - "minimatch": { - "version": "3.1.5", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.5.tgz", - "integrity": "sha512-VgjWUsnnT6n+NUk6eZq77zeFdpW2LWDzP6zFGrCbHXiYNul5Dzqk2HHQ5uFH2DNW5Xbp8+jVzaeNt94ssEEl4w==", + "path-scurry": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/path-scurry/-/path-scurry-2.0.2.tgz", + "integrity": "sha512-3O/iVVsJAPsOnpwWIeD+d6z/7PmqApyQePUtCndjatj/9I5LylHvt5qluFaBT3I5h3r1ejfR056c+FCv+NnNXg==", "dev": true, "requires": { - "brace-expansion": "^1.1.7" + "lru-cache": "^11.0.0", + "minipass": "^7.1.2" } } } @@ -5706,6 +5725,12 @@ "is-unicode-supported": "^0.1.0" } }, + "lru-cache": { + "version": "11.5.2", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-11.5.2.tgz", + "integrity": "sha512-4pfM1Ff0x50o0tQwb5ucw/RzNyD0/YJME6IVcStalZuMWxdt3sR3huStTtxz4PUmvZfRguvDejasvQ2kifR11g==", + "dev": true + }, "merge-stream": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/merge-stream/-/merge-stream-2.0.0.tgz", @@ -6560,6 +6585,20 @@ "integrity": "sha512-vbRorB5FUQWvla16U8R/qgaFIya2qGzwDrNmCZuYKrbdSUMG6I1ZCGQRefkRVhuOkIGVne7BQ35DSfo1qvJqFg==", "dev": true }, + "glob": { + "version": "7.2.3", + "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz", + "integrity": "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==", + "dev": true, + "requires": { + "fs.realpath": "^1.0.0", + "inflight": "^1.0.4", + "inherits": "2", + "minimatch": "^3.1.1", + "once": "^1.3.0", + "path-is-absolute": "^1.0.0" + } + }, "has-flag": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", diff --git a/package.json b/package.json index 62d99312..86a26c53 100644 --- a/package.json +++ b/package.json @@ -1208,7 +1208,7 @@ "@types/vscode": "1.95.0", "@vscode/test-electron": "^3.1.0", "copy-webpack-plugin": "^14.0.0", - "glob": "^7.2.3", + "glob": "^13.0.6", "mocha": "^11.7.5", "ts-loader": "^9.6.2", "tslint": "^6.1.3", From f1e3f6022184c80bf765359fd7a223e35562d378 Mon Sep 17 00:00:00 2001 From: GitHub Copilot <223556219+Copilot@users.noreply.github.com> Date: Fri, 4 Sep 2026 09:02:19 +0000 Subject: [PATCH 2/3] fix(deps): migrate test discovery to glob promise API Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- package-lock.json | 21 --------------------- package.json | 1 - test/gradle-suite/index.ts | 10 +++------- test/invisible-suite/index.ts | 10 +++------- test/maven-suite/index.ts | 10 +++------- test/multi-module-suite/index.ts | 10 +++------- test/multiple-suite/index.ts | 10 +++------- test/non-java-gradle-suite/index.ts | 10 +++------- test/simple-suite/index.ts | 10 +++------- test/suite/index.ts | 10 +++------- 10 files changed, 24 insertions(+), 78 deletions(-) diff --git a/package-lock.json b/package-lock.json index 7c9bfb2c..0cf046b5 100644 --- a/package-lock.json +++ b/package-lock.json @@ -23,7 +23,6 @@ }, "devDependencies": { "@types/fs-extra": "^11.0.4", - "@types/glob": "^7.2.0", "@types/lodash": "^4.17.25", "@types/minimatch": "^3.0.3", "@types/mocha": "^9.1.1", @@ -784,16 +783,6 @@ "@types/node": "*" } }, - "node_modules/@types/glob": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/@types/glob/-/glob-7.2.0.tgz", - "integrity": "sha512-ZUxbzKl0IfJILTS6t7ip5fQQM/J3TJYubDm3nMbgubNNYS62eXeUpoLUC8/7fJNiFYHTrGPQn7hspDUzIHX3UA==", - "dev": true, - "dependencies": { - "@types/minimatch": "*", - "@types/node": "*" - } - }, "node_modules/@types/json-schema": { "version": "7.0.15", "resolved": "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.15.tgz", @@ -4639,16 +4628,6 @@ "@types/node": "*" } }, - "@types/glob": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/@types/glob/-/glob-7.2.0.tgz", - "integrity": "sha512-ZUxbzKl0IfJILTS6t7ip5fQQM/J3TJYubDm3nMbgubNNYS62eXeUpoLUC8/7fJNiFYHTrGPQn7hspDUzIHX3UA==", - "dev": true, - "requires": { - "@types/minimatch": "*", - "@types/node": "*" - } - }, "@types/json-schema": { "version": "7.0.15", "resolved": "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.15.tgz", diff --git a/package.json b/package.json index 86a26c53..1342a290 100644 --- a/package.json +++ b/package.json @@ -1199,7 +1199,6 @@ }, "devDependencies": { "@types/fs-extra": "^11.0.4", - "@types/glob": "^7.2.0", "@types/lodash": "^4.17.25", "@types/minimatch": "^3.0.3", "@types/mocha": "^9.1.1", diff --git a/test/gradle-suite/index.ts b/test/gradle-suite/index.ts index 3e503ad8..0d1047b5 100644 --- a/test/gradle-suite/index.ts +++ b/test/gradle-suite/index.ts @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT license. -import * as glob from "glob"; +import { glob } from "glob"; import * as Mocha from "mocha"; import * as path from "path"; @@ -16,11 +16,7 @@ export function run(): Promise { const testsRoot = __dirname; return new Promise((c, e) => { - glob("**/**.test.js", { cwd: testsRoot }, (err, files) => { - if (err) { - return e(err); - } - + glob("**/**.test.js", { cwd: testsRoot }).then((files) => { // Add files to the test suite files.forEach((f) => mocha.addFile(path.resolve(testsRoot, f))); @@ -36,6 +32,6 @@ export function run(): Promise { } catch (err) { e(err); } - }); + }).catch(e); }); } diff --git a/test/invisible-suite/index.ts b/test/invisible-suite/index.ts index 3e503ad8..0d1047b5 100644 --- a/test/invisible-suite/index.ts +++ b/test/invisible-suite/index.ts @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT license. -import * as glob from "glob"; +import { glob } from "glob"; import * as Mocha from "mocha"; import * as path from "path"; @@ -16,11 +16,7 @@ export function run(): Promise { const testsRoot = __dirname; return new Promise((c, e) => { - glob("**/**.test.js", { cwd: testsRoot }, (err, files) => { - if (err) { - return e(err); - } - + glob("**/**.test.js", { cwd: testsRoot }).then((files) => { // Add files to the test suite files.forEach((f) => mocha.addFile(path.resolve(testsRoot, f))); @@ -36,6 +32,6 @@ export function run(): Promise { } catch (err) { e(err); } - }); + }).catch(e); }); } diff --git a/test/maven-suite/index.ts b/test/maven-suite/index.ts index 3e503ad8..0d1047b5 100644 --- a/test/maven-suite/index.ts +++ b/test/maven-suite/index.ts @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT license. -import * as glob from "glob"; +import { glob } from "glob"; import * as Mocha from "mocha"; import * as path from "path"; @@ -16,11 +16,7 @@ export function run(): Promise { const testsRoot = __dirname; return new Promise((c, e) => { - glob("**/**.test.js", { cwd: testsRoot }, (err, files) => { - if (err) { - return e(err); - } - + glob("**/**.test.js", { cwd: testsRoot }).then((files) => { // Add files to the test suite files.forEach((f) => mocha.addFile(path.resolve(testsRoot, f))); @@ -36,6 +32,6 @@ export function run(): Promise { } catch (err) { e(err); } - }); + }).catch(e); }); } diff --git a/test/multi-module-suite/index.ts b/test/multi-module-suite/index.ts index 3e503ad8..0d1047b5 100644 --- a/test/multi-module-suite/index.ts +++ b/test/multi-module-suite/index.ts @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT license. -import * as glob from "glob"; +import { glob } from "glob"; import * as Mocha from "mocha"; import * as path from "path"; @@ -16,11 +16,7 @@ export function run(): Promise { const testsRoot = __dirname; return new Promise((c, e) => { - glob("**/**.test.js", { cwd: testsRoot }, (err, files) => { - if (err) { - return e(err); - } - + glob("**/**.test.js", { cwd: testsRoot }).then((files) => { // Add files to the test suite files.forEach((f) => mocha.addFile(path.resolve(testsRoot, f))); @@ -36,6 +32,6 @@ export function run(): Promise { } catch (err) { e(err); } - }); + }).catch(e); }); } diff --git a/test/multiple-suite/index.ts b/test/multiple-suite/index.ts index cfc957e9..11c99015 100644 --- a/test/multiple-suite/index.ts +++ b/test/multiple-suite/index.ts @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT license. -import * as glob from "glob"; +import { glob } from "glob"; import * as Mocha from "mocha"; import * as path from "path"; @@ -15,11 +15,7 @@ export function run(): Promise { const testsRoot = __dirname; return new Promise((c, e) => { - glob("**/**.test.js", { cwd: testsRoot }, (err, files) => { - if (err) { - return e(err); - } - + glob("**/**.test.js", { cwd: testsRoot }).then((files) => { files.forEach((f) => mocha.addFile(path.resolve(testsRoot, f))); try { @@ -33,6 +29,6 @@ export function run(): Promise { } catch (err) { e(err); } - }); + }).catch(e); }); } diff --git a/test/non-java-gradle-suite/index.ts b/test/non-java-gradle-suite/index.ts index 3e503ad8..0d1047b5 100644 --- a/test/non-java-gradle-suite/index.ts +++ b/test/non-java-gradle-suite/index.ts @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT license. -import * as glob from "glob"; +import { glob } from "glob"; import * as Mocha from "mocha"; import * as path from "path"; @@ -16,11 +16,7 @@ export function run(): Promise { const testsRoot = __dirname; return new Promise((c, e) => { - glob("**/**.test.js", { cwd: testsRoot }, (err, files) => { - if (err) { - return e(err); - } - + glob("**/**.test.js", { cwd: testsRoot }).then((files) => { // Add files to the test suite files.forEach((f) => mocha.addFile(path.resolve(testsRoot, f))); @@ -36,6 +32,6 @@ export function run(): Promise { } catch (err) { e(err); } - }); + }).catch(e); }); } diff --git a/test/simple-suite/index.ts b/test/simple-suite/index.ts index 3e503ad8..0d1047b5 100644 --- a/test/simple-suite/index.ts +++ b/test/simple-suite/index.ts @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT license. -import * as glob from "glob"; +import { glob } from "glob"; import * as Mocha from "mocha"; import * as path from "path"; @@ -16,11 +16,7 @@ export function run(): Promise { const testsRoot = __dirname; return new Promise((c, e) => { - glob("**/**.test.js", { cwd: testsRoot }, (err, files) => { - if (err) { - return e(err); - } - + glob("**/**.test.js", { cwd: testsRoot }).then((files) => { // Add files to the test suite files.forEach((f) => mocha.addFile(path.resolve(testsRoot, f))); @@ -36,6 +32,6 @@ export function run(): Promise { } catch (err) { e(err); } - }); + }).catch(e); }); } diff --git a/test/suite/index.ts b/test/suite/index.ts index 3e503ad8..0d1047b5 100644 --- a/test/suite/index.ts +++ b/test/suite/index.ts @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT license. -import * as glob from "glob"; +import { glob } from "glob"; import * as Mocha from "mocha"; import * as path from "path"; @@ -16,11 +16,7 @@ export function run(): Promise { const testsRoot = __dirname; return new Promise((c, e) => { - glob("**/**.test.js", { cwd: testsRoot }, (err, files) => { - if (err) { - return e(err); - } - + glob("**/**.test.js", { cwd: testsRoot }).then((files) => { // Add files to the test suite files.forEach((f) => mocha.addFile(path.resolve(testsRoot, f))); @@ -36,6 +32,6 @@ export function run(): Promise { } catch (err) { e(err); } - }); + }).catch(e); }); } From f5a05df3aa55abac5992a266953b45a7ba0af0c4 Mon Sep 17 00:00:00 2001 From: GitHub Copilot <223556219+Copilot@users.noreply.github.com> Date: Fri, 4 Sep 2026 09:09:27 +0000 Subject: [PATCH 3/3] fix(deps): preserve test discovery order with glob 13 Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- test/gradle-suite/index.ts | 2 +- test/invisible-suite/index.ts | 2 +- test/maven-suite/index.ts | 2 +- test/multi-module-suite/index.ts | 2 +- test/multiple-suite/index.ts | 2 +- test/non-java-gradle-suite/index.ts | 2 +- test/simple-suite/index.ts | 2 +- test/suite/index.ts | 2 +- 8 files changed, 8 insertions(+), 8 deletions(-) diff --git a/test/gradle-suite/index.ts b/test/gradle-suite/index.ts index 0d1047b5..3b2fee47 100644 --- a/test/gradle-suite/index.ts +++ b/test/gradle-suite/index.ts @@ -18,7 +18,7 @@ export function run(): Promise { return new Promise((c, e) => { glob("**/**.test.js", { cwd: testsRoot }).then((files) => { // Add files to the test suite - files.forEach((f) => mocha.addFile(path.resolve(testsRoot, f))); + files.sort().forEach((f) => mocha.addFile(path.resolve(testsRoot, f))); try { // Run the mocha test diff --git a/test/invisible-suite/index.ts b/test/invisible-suite/index.ts index 0d1047b5..3b2fee47 100644 --- a/test/invisible-suite/index.ts +++ b/test/invisible-suite/index.ts @@ -18,7 +18,7 @@ export function run(): Promise { return new Promise((c, e) => { glob("**/**.test.js", { cwd: testsRoot }).then((files) => { // Add files to the test suite - files.forEach((f) => mocha.addFile(path.resolve(testsRoot, f))); + files.sort().forEach((f) => mocha.addFile(path.resolve(testsRoot, f))); try { // Run the mocha test diff --git a/test/maven-suite/index.ts b/test/maven-suite/index.ts index 0d1047b5..3b2fee47 100644 --- a/test/maven-suite/index.ts +++ b/test/maven-suite/index.ts @@ -18,7 +18,7 @@ export function run(): Promise { return new Promise((c, e) => { glob("**/**.test.js", { cwd: testsRoot }).then((files) => { // Add files to the test suite - files.forEach((f) => mocha.addFile(path.resolve(testsRoot, f))); + files.sort().forEach((f) => mocha.addFile(path.resolve(testsRoot, f))); try { // Run the mocha test diff --git a/test/multi-module-suite/index.ts b/test/multi-module-suite/index.ts index 0d1047b5..3b2fee47 100644 --- a/test/multi-module-suite/index.ts +++ b/test/multi-module-suite/index.ts @@ -18,7 +18,7 @@ export function run(): Promise { return new Promise((c, e) => { glob("**/**.test.js", { cwd: testsRoot }).then((files) => { // Add files to the test suite - files.forEach((f) => mocha.addFile(path.resolve(testsRoot, f))); + files.sort().forEach((f) => mocha.addFile(path.resolve(testsRoot, f))); try { // Run the mocha test diff --git a/test/multiple-suite/index.ts b/test/multiple-suite/index.ts index 11c99015..fc444ea7 100644 --- a/test/multiple-suite/index.ts +++ b/test/multiple-suite/index.ts @@ -16,7 +16,7 @@ export function run(): Promise { return new Promise((c, e) => { glob("**/**.test.js", { cwd: testsRoot }).then((files) => { - files.forEach((f) => mocha.addFile(path.resolve(testsRoot, f))); + files.sort().forEach((f) => mocha.addFile(path.resolve(testsRoot, f))); try { mocha.run((failures) => { diff --git a/test/non-java-gradle-suite/index.ts b/test/non-java-gradle-suite/index.ts index 0d1047b5..3b2fee47 100644 --- a/test/non-java-gradle-suite/index.ts +++ b/test/non-java-gradle-suite/index.ts @@ -18,7 +18,7 @@ export function run(): Promise { return new Promise((c, e) => { glob("**/**.test.js", { cwd: testsRoot }).then((files) => { // Add files to the test suite - files.forEach((f) => mocha.addFile(path.resolve(testsRoot, f))); + files.sort().forEach((f) => mocha.addFile(path.resolve(testsRoot, f))); try { // Run the mocha test diff --git a/test/simple-suite/index.ts b/test/simple-suite/index.ts index 0d1047b5..3b2fee47 100644 --- a/test/simple-suite/index.ts +++ b/test/simple-suite/index.ts @@ -18,7 +18,7 @@ export function run(): Promise { return new Promise((c, e) => { glob("**/**.test.js", { cwd: testsRoot }).then((files) => { // Add files to the test suite - files.forEach((f) => mocha.addFile(path.resolve(testsRoot, f))); + files.sort().forEach((f) => mocha.addFile(path.resolve(testsRoot, f))); try { // Run the mocha test diff --git a/test/suite/index.ts b/test/suite/index.ts index 0d1047b5..3b2fee47 100644 --- a/test/suite/index.ts +++ b/test/suite/index.ts @@ -18,7 +18,7 @@ export function run(): Promise { return new Promise((c, e) => { glob("**/**.test.js", { cwd: testsRoot }).then((files) => { // Add files to the test suite - files.forEach((f) => mocha.addFile(path.resolve(testsRoot, f))); + files.sort().forEach((f) => mocha.addFile(path.resolve(testsRoot, f))); try { // Run the mocha test