chroe(vscode): Refresh vscode integration lockfile (#9965)

Co-authored-by: openhands <openhands@all-hands.dev>
Co-authored-by: Engel Nyst <enyst@users.noreply.github.com>
This commit is contained in:
sp.wack 2025-08-20 17:33:11 +04:00 committed by GitHub
parent bb0e24d23b
commit c763f0e368
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 802 additions and 900 deletions

File diff suppressed because it is too large Load Diff

View File

@ -1,8 +1,8 @@
import * as path from "path";
import Mocha = require("mocha"); // Changed import style
import glob = require("glob"); // Changed import style
import Mocha = require("mocha");
import { glob } from "glob"; // Updated for glob v9+ API
export function run(): Promise<void> {
export async function run(): Promise<void> {
// Create the mocha test
const mocha = new Mocha({
// This should now work with the changed import
@ -13,33 +13,25 @@ export function run(): Promise<void> {
const testsRoot = path.resolve(__dirname, ".."); // Root of the /src/test folder (compiled to /out/test)
return new Promise((c, e) => {
try {
// Use glob to find all test files (ending with .test.js in the compiled output)
glob(
"**/**.test.js",
{ cwd: testsRoot },
(err: NodeJS.ErrnoException | null, files: string[]) => {
if (err) {
return e(err);
}
const files = await glob("**/**.test.js", { cwd: testsRoot });
// Add files to the test suite
files.forEach((f: string) => mocha.addFile(path.resolve(testsRoot, f)));
// Add files to the test suite
files.forEach((f: string) => mocha.addFile(path.resolve(testsRoot, f)));
try {
// Run the mocha test
mocha.run((failures: number) => {
if (failures > 0) {
e(new Error(`${failures} tests failed.`));
} else {
c();
}
});
} catch (err) {
console.error(err);
e(err);
// Run the mocha test
return await new Promise<void>((resolve, reject) => {
mocha.run((failures: number) => {
if (failures > 0) {
reject(new Error(`${failures} tests failed.`));
} else {
resolve();
}
},
);
});
});
});
} catch (err) {
console.error(err);
throw err;
}
}