Skip to content

Commit 080e69a

Browse files
committed
fix(deps): complete glob type migration
Preserve synchronous Mocha error rejection coverage and align the branch with the latest base dependencies. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2 parents 1af2ef7 + d4e1bb7 commit 080e69a

4 files changed

Lines changed: 42 additions & 17 deletions

File tree

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ javaDebugger/
2727
### Prerequisites
2828
- [JDK](http://www.oracle.com/technetwork/java/javase/downloads/index.html), (version 11 or later)
2929
- [VS Code](https://code.visualstudio.com/), (version 1.44.0 or later)
30-
- [Node.JS](https://nodejs.org/en/), (20 or >= 22)
30+
- [Node.JS](https://nodejs.org/en/), (20.x or 22+)
3131
- [Language Support for Java by Red Hat](https://marketplace.visualstudio.com/items?itemName=redhat.java), (version 0.60.0 or later)
3232

3333
Install all the dependencies using `npm` (supposed to be installed together with [Node.JS](https://nodejs.org/en/)).

package-lock.json

Lines changed: 16 additions & 14 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1399,12 +1399,12 @@
13991399
"webpack-cli": "^4.10.0"
14001400
},
14011401
"dependencies": {
1402-
"compare-versions": "^4.1.4",
1402+
"compare-versions": "^6.1.1",
14031403
"dotenv": "^17.4.2",
14041404
"lodash": "^4.18.0",
14051405
"vscode-extension-telemetry-wrapper": "^0.15.3",
14061406
"vscode-languageclient": "6.0.0-next.9",
1407-
"vscode-languageserver-types": "3.16.0",
1407+
"vscode-languageserver-types": "3.18.0",
14081408
"vscode-tas-client": "^0.1.84"
14091409
},
14101410
"overrides": {

test/testRunner.test.ts

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
// Copyright (c) Microsoft Corporation. All rights reserved.
2+
// Licensed under the MIT license.
3+
4+
import * as assert from "assert";
5+
import * as Mocha from "mocha";
6+
7+
import { run } from "./suite";
8+
9+
suite("test runner", () => {
10+
test("rejects when Mocha throws synchronously", async () => {
11+
const expectedError = new Error("Mocha failed to start");
12+
const originalRun = Mocha.prototype.run;
13+
Mocha.prototype.run = () => {
14+
throw expectedError;
15+
};
16+
17+
try {
18+
await assert.rejects(run(), (error) => error === expectedError);
19+
} finally {
20+
Mocha.prototype.run = originalRun;
21+
}
22+
});
23+
});

0 commit comments

Comments
 (0)