diff --git a/package-lock.json b/package-lock.json index 2190853..213f061 100644 --- a/package-lock.json +++ b/package-lock.json @@ -16,7 +16,7 @@ "@types/glob": "^9.0.0", "@types/mocha": "^10.0.10", "@types/node": "^25.9.1", - "@types/vscode": "^1.120.0", + "@types/vscode": "^1.53.0", "@typescript-eslint/eslint-plugin": "^8.60.1", "@typescript-eslint/parser": "^8.60.1", "@vscode/test-electron": "^2.5.2", diff --git a/package.json b/package.json index ffc9a0a..891e81e 100644 --- a/package.json +++ b/package.json @@ -131,7 +131,7 @@ "@types/glob": "^9.0.0", "@types/mocha": "^10.0.10", "@types/node": "^25.9.1", - "@types/vscode": "^1.120.0", + "@types/vscode": "^1.53.0", "@typescript-eslint/eslint-plugin": "^8.60.1", "@typescript-eslint/parser": "^8.60.1", "@vscode/test-electron": "^2.5.2", diff --git a/src/test/suite/index.ts b/src/test/suite/index.ts index 7029e38..0ac2b26 100644 --- a/src/test/suite/index.ts +++ b/src/test/suite/index.ts @@ -1,6 +1,6 @@ import * as path from 'path'; -import * as Mocha from 'mocha'; -import * as glob from 'glob'; +import Mocha from 'mocha'; +import { glob } from 'glob'; export function run(): Promise { // Create the mocha test @@ -12,11 +12,7 @@ export function run(): Promise { const testsRoot = path.resolve(__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))); @@ -33,6 +29,6 @@ export function run(): Promise { console.error(err); e(err); } - }); + }, e); }); } diff --git a/tsconfig.json b/tsconfig.json index 6cef4ea..46fd577 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -9,6 +9,7 @@ "sourceMap": true, "rootDir": "src", "newLine": "lf", + "skipLibCheck": true, "strict": true /* enable all strict type-checking options */ /* Additional Checks */ // "noImplicitReturns": true, /* Report error when not all code paths in function return a value. */