Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
166 changes: 92 additions & 74 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -1208,7 +1207,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",
Comment thread
chagong marked this conversation as resolved.
"tslint": "^6.1.3",
Expand Down
12 changes: 4 additions & 8 deletions test/gradle-suite/index.ts
Original file line number Diff line number Diff line change
@@ -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";

Expand All @@ -16,13 +16,9 @@ export function run(): Promise<void> {
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)));
files.sort().forEach((f) => mocha.addFile(path.resolve(testsRoot, f)));

try {
// Run the mocha test
Expand All @@ -36,6 +32,6 @@ export function run(): Promise<void> {
} catch (err) {
e(err);
}
});
}).catch(e);
});
}
12 changes: 4 additions & 8 deletions test/invisible-suite/index.ts
Original file line number Diff line number Diff line change
@@ -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";

Expand All @@ -16,13 +16,9 @@ export function run(): Promise<void> {
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)));
files.sort().forEach((f) => mocha.addFile(path.resolve(testsRoot, f)));

try {
// Run the mocha test
Expand All @@ -36,6 +32,6 @@ export function run(): Promise<void> {
} catch (err) {
e(err);
}
});
}).catch(e);
});
}
Loading