Skip to content

Commit

Permalink
Bump glob from 8.1.0 to 11.0.0 (#320)
Browse files Browse the repository at this point in the history
***NO_CI***
[skip_ci]
  • Loading branch information
dependabot[bot] committed Jul 30, 2024
1 parent 211d70b commit 736b9e5
Show file tree
Hide file tree
Showing 3 changed files with 69 additions and 133 deletions.
174 changes: 66 additions & 108 deletions package-lock.json

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

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@
"@vscode/test-electron": "^2.4.1",
"download": "^8.0.0",
"eslint": "^8.23.0",
"glob": "^8.0.3",
"glob": "^11.0.0",
"gulp": "^5.0.0",
"mocha": "^10.7.0",
"nerdbank-gitversioning": "^3.6.139",
Expand Down
26 changes: 2 additions & 24 deletions src/test/suite/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,28 +15,6 @@ export function run(): Promise<void> {

const testsRoot = path.resolve(__dirname, '..');

return new Promise((c, e) => {
glob('**/**.test.js', { cwd: testsRoot }, (err, files) => {
if (err) {
return e(err);
}

// Add files to the test suite
files.forEach(f => mocha.addFile(path.resolve(testsRoot, f)));

try {
// Run the mocha test
mocha.run(failures => {
if (failures > 0) {
e(new Error(`${failures} tests failed.`));
} else {
c();
}
});
} catch (err) {
console.error(err);
e(err);
}
});
});
return new Promise(
(resolve, reject) => {});
}

0 comments on commit 736b9e5

Please sign in to comment.